[USE LOAD-MODULE FIELD] Jdoc:include not rendering in custom template, how to display modules inside FLEXIcontent template

More
8 years 10 months ago - 8 years 10 months ago #59848 by kamou
Hello,

I have a problem with the rendering of a jdoc:include.
I use a custom flexicontent template named "custom-cs" to display articles.

I'm trying to include a module in my item.php (/templates/cs-template/html/com_flexicontent/templates/custom-cs/item.php) like this :
Code:
<jdoc:include type="modules" name="position-5" />

Its not in a condition. The position load works if i put this in the index.php but not in my item.php.

When i explore the code rendered, i see
Code:
<jdoc:include type="modules" name="position-5" /></jdoc:include>
as if it wasnt considered as a statement.

Maybe you can help me? :)

Thank you
Last edit: 8 years 10 months ago by ggppdk.

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

More
8 years 10 months ago - 8 years 10 months ago #59849 by micker
more simple create a load module field => you can add this in position simply

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]
Last edit: 8 years 10 months ago by ggppdk.
The following user(s) said Thank You: kamou

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

More
8 years 10 months ago - 8 years 10 months ago #59854 by ggppdk
Hello

FLEXIcontent "templates", have 2 layouts:
- the "item" (=single item)
- the "category" (=item listing)

they are not meant to render Joomla modules positions,
- instead they are meant to be the content displayed at the "component area" of yout Joomla template

as micker said you can use display modules by using the FLEXIcontent field "Load module / module position" (fcloadmodule)
it can display
- either a specific module
- or a module position (all the modules of the position)


-- 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...
Last edit: 8 years 10 months ago by ggppdk.
The following user(s) said Thank You: kamou

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

More
8 years 10 months ago - 8 years 10 months ago #59859 by kamou
Thank you for your answers.

I'll try this tomorrow

Edit : Worked perfectly, thank you :)
Last edit: 8 years 10 months ago by kamou.

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

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