Vivek
Vivek

Reputation: 4636

Joomla: Passing Parameters from an Article to Module

I am new to Joomla. I am developing a dynamic module which will display data relevant to the article with which the module is being displayed. Is it possible? If yes, how? Any help is appreciated.

Upvotes: 0

Views: 1208

Answers (1)

Ruslan Polutsygan
Ruslan Polutsygan

Reputation: 4461

What parameters exactly are you talking about? I think all parameters could be gotten using article ID. And article ID always could be retieved from GET. You could use code like this:

if(JRequest::getVar('option')=='com_content' && JRequest::getVar('view')=='article')
{
    $article_id=JRequest::getVar('id');
    // then operate with ID.
}

If I'm wrong please specify your needs.

I hope it will be helpfull.

Upvotes: 1

Related Questions