need to skip content triggers on flexicontent items

More
11 years 6 months ago #37861 by dipti_j
Hello,

I am from TechJoomla team. We are integrating Flexicontent with our extension Quick2Cart. We need to skip Joomla content plugin triggers on Flexicontent items.
I saw some content plugin related params in text field plugin, but even if I copy those to my custom field plugin, it is not showing in the new field form.
Can you please let me know how this can be done ?

Waiting for your response. Thanks in advance :)
Regards,
Dipti

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

More
11 years 6 months ago #37872 by ggppdk
Hello,
FLEXIcontent overrides JDispatcher joomla class,
and thus can trigger content plugins selectively (normal joomla dispatcher will trigger ALL content plugins that have been loaded up to the point of calling)

e.g. with normal joomla dispatcher you would have:
- field1 triggers plgA and plgB
- if field 2 wants to only trigger plgC it is not possible it will have to trigger plgA, plgB and plgC

with FLEXIcontent overriden class of JDispatcher you can do it ...


About your question:
For items, these Content Plugin events are ALWAYS triggered (on their description)
onContentAfterTitle
onContentBeforeDisplay
onAfterDisplayContent


For each Field, the content plugin event:
onContentPrepare
is triggered OPTIONALLY via the (XML file) parameters:
trigger_onprepare_content (effects both item view and category view)
trigger_plgs_incatview (if this exists it is used in category view instead of above)

you can copy these parameters from file
plugins/flexicontent_fields/core/core.xml


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

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