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

2 years 2 months ago - 2 years 2 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 :
<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
<jdoc:include type="modules" name="position-5" /></jdoc:include>
as if it wasnt considered as a statement.

Maybe you can help me? :)

Thank you

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

2 years 2 months ago - 2 years 2 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]
The following user(s) said Thank You: kamou

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

2 years 2 months ago - 2 years 2 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 review. Thanks!
The following user(s) said Thank You: kamou

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

2 years 2 months ago - 2 years 2 months ago #59859 by kamou
Thank you for your answers.

I'll try this tomorrow

Edit : Worked perfectly, thank you :)

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.