Assign modules and 3rd-party extensions to FC Item pages.

More
5 years 11 months ago #75635 by micker
do a print of app->input->getCmd('view') to check view and adapt code

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
5 years 11 months ago #75637 by lipatovroman

micker wrote: do a print of app->input->getCmd('view') to check view and adapt code


I tested this code:
Code:
<?php echo $app->input->getCmd('view'); ?>

It displays item - on item pages, and category - on category pages.

Then I tried this code:
Code:
if ($app->input->getCmd('option') == "com_flexcontent" && $app->input->getCmd('view') == "category") { return false; } if ($app->input->getCmd('option') == "com_flexcontent" && $app->input->getCmd('view') == "item") { return true; }

But module still displays on any FC page, included tags and categories.

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

More
5 years 11 months ago #75638 by lipatovroman
Ok, I found issue.
It because your code contains errors:



Thanks. It work now.

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

More
5 years 11 months ago #75640 by micker
ah sorry copy past error !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.421 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline