Loading Flexicontent Pro plugin in modules

More
10 years 6 months ago #51656 by Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
10 years 5 months ago #51742 by Rooney
Hi, have you had a chance to look into this?
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
10 years 5 months ago #51749 by ggppdk
Hello

plugin does this in 2 steps (for achieving best performance in case of doing hundrends of replacements)

1. call to find replacements at the onAfterRender event (modules and component HTML code have been created):

$buffer = $document->getBuffer();

and examines
$buffer
...
$buffer


2. onBeforeCompileHead
this is 2nd call to do the replacements


if your text is inserted later than 1, or it is inserted by After render event but it is done in order after call to FLEXIcontent replacement plugin,

-- then it will not be found thus it will not be replaced


question: which module (type of module) are you using ?
-- is it a custom HTML module, thus adding the text via a text editor ?


-- 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.

More
10 years 5 months ago #51752 by Rooney
Hi,
I am using a text field to add the code
Code:
{flexi_ITEM:329 ilayout:blog}
to an article. Than I am using the Universal FC module to display the content of the field in a module position.
The reason is that I have a category blog view of articles from a flexicontent category. If one clicks on a readmore link I want to display the contact person for the article in a module position. therefore I am adding an article with contact person information with {flexi_ITEM:329 ilayout:blog} and display this article with the flexicontent module filtering the field.
The module is beeing loaded after the article. If I am adding contents via loadposition into the text field and using the FC module to display the field contents it works.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
10 years 5 months ago #51761 by ggppdk
Hello

i am not sure that i understand the configuration , so that i can make a similar 1 locally :?


-- 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.

More
10 years 5 months ago #51800 by Rooney
Ok. I have a category blog with news articles. I want to display the responsible sales contact for the articles. Earlier I have done this with loadposition. I created modules for every sales contact and loaded the plugin in a text field. The problem here is that I have to maintain double information. A module with the contact person's information and an article with the contact person.
After the pro plugin has been available I used the plugin to display the article inside the news article
Here is an example for an news article:
www.muenstermann.com/de/uebersic ... -gips.html
And here are the corresponding article for the two contacts that are loaded via FC pro plugin inside the article in a text field:
www.muenstermann.com/de/uebersic ... freye.html
www.muenstermann.com/de/uebersic ... hajek.html
This is fine and works.
Sometimes the news articles are relatively long so that the contact information is at the very end of the article. My idea was to use the FC universal module to display the contact articles. The way to do it is as follows:
1) Still loading the contact articles via the pro plugin without displaying the field in the template.
2) Creating a FC module and assigning to the category blog menu item.
3) The module is setup using a dynamic custom field scope that displays the contents of the text field that calls the FC pro plugin. So, if one clicks at readmore the contact person article (that is loaded in the news article) is displayed in the module. Unfortunately the plugin is NOT displayed in the module.
If I am using the old method, putting a loadposition plugin code into the text field, 3) is working and the module contents is displayed in the FC universal module.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.371 seconds
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
Save