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

More
5 years 11 months ago #75629 by lipatovroman
Hello!
I use 3rd-party extension to display popup window on FC items pages.
The trigger for display popup - is button.
But hidden popup displays on all pages, included FC categories.
Support of this extension answered, that I can use Custom PHP Assignments .
But I can't understand how to assign it to FC pages.
I found something like we need, but it only for Joomla specific articles.
Code:
// Comma separated list of allowed articles $articles = "50, 51, 52"; // Do not edit below if ($app->input->getCmd('option') != "com_content") { return false; } if ($app->input->getCmd('view') == "article") { return(in_array($app->input->getCmd('id'), explode(",", $articles))); }

But we need for all FC item pages.
Thanks.

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

More
5 years 11 months ago #75630 by lipatovroman

lipatovroman wrote: Hello!
I use 3rd-party extension to display popup window on FC items pages.
The trigger for display popup - is button.
But hidden popup displays on all pages, included FC categories.
Support of this extension answered, that I can use Custom PHP Assignments .
But I can't understand how to assign it to FC pages.
I found something like we need, but it only for Joomla specific articles.

Code:
// Comma separated list of allowed articles $articles = "50, 51, 52"; // Do not edit below if ($app->input->getCmd('option') != "com_content") { return false; } if ($app->input->getCmd('view') == "article") { return(in_array($app->input->getCmd('id'), explode(",", $articles))); }

But we need to assign popup for only FC item pages.
Thanks.

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

More
5 years 11 months ago #75631 by micker
you can adapt this code ...
just change com_content by com_flexicontent
and vie == "article" by "item"

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 #75632 by lipatovroman

micker wrote: you can adapt this code ...
just change com_content by com_flexicontent
and vie == "article" by "item"


What I should do with
Code:
$articles = "50, 51, 52";
?

I need to display popup in ALL items.

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

More
5 years 11 months ago #75633 by micker
Code:
if ($app->input->getCmd('option') == "com_content") { return false; // hide on joomla content } if ($app->input->getCmd('option') == "com_flexcontent" && app->input->getCmd('view') == "item") { return true; // display in flexicontent and only in item view }

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 #75634 by lipatovroman
Ok, I use this code to assign test module
Code:
if ($app->input->getCmd('option') == "com_flexcontent" && $app->input->getCmd('view') == "item") { return true; }

In Advanced Module Manager



Test module does not displays in any component, besides FC - it's good.
But it displays on ANY FlexiContent pages.
It should displays only in item pages.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.347 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