开发者

Joomla: Passing Parameters from an Article to Module

开发者 https://www.devze.com 2023-03-23 19:43 出处:网络
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

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消