Keyword

I want to know if the current URL is a k2 item or

More
12 years 2 months ago #101248 by Max
Hello

In joomla the current url could be a menu, a content or even k2 element, as an item or category.
For example in a menu could be add a k2 category, but you are view a menu, but when what you really see is a k2 item, it must be some function (that I can find) where tell you, this is an item k2 page or an k2 category page.

I hope I explain myself correctly.

Thanks in advance !

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

More
12 years 2 months ago #101249 by Lefteris
Hi. You didn't mention in which context you want to check. In case you mean your template you can make checks like:
 if(JRequest::getCmd('option') == 'com_k2' && JRequest::getCmd('view') == 'item')

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum