Keyword

how to know if plugin is loading main item or an item from a module?

  • Webonaute
  • Webonaute's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #80758 by Webonaute
currently if I make a plugin to add ADS to my main content, it also add ads in my module because when I do if ((JRequest::getVar ( 'view' )) != 'item') {print "MainItem Called : ".JRequest::getVar ( 'id' );}it will result in MainItem Called :20 on top of my main content but also MainItem Called : 22MainItem Called : 34 MainItem Called : 32 before each item in any mod_k2_content module.why not add moditem name for view coming from module?am not sure if my question is clear!? lol.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum