We can include module in joomla content. I think experts know this well but this post will be helpful for newbie đ .Ok let’s start then.
Step1: Create a new module position
Normally the module positions available are all used in template , so we need to create a new module position. Go to yout current template folder and open the templateDetails.xml and go near
[code language=”xml”]
<positions>
<position>breadcrumb</position>
[/code]
Now add a new line like
[code language=”xml”]<position>contentpos</position>[/code]
here contentpos is a new module position name. So the all module position will look like bellow
[code language=”xml”]
<positions>
<position>breadcrumb</position>
<position>left</position>
<position>right</position>
<position>top</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>user4</position>
<position>footer</position>
<position>debug</position>
<position>syndicate</position>
<position>contentpos</position>
</positions>
[/code]
check the last line đ Remember your new module position name.
Step 2: Add module position in content
Go to your admin panel and content manager. Open any article for edit and put code bellow in article in normal html mode. Default jomla editor is some kind of richeditor mode. If you are using default joomla editor then click the button ‘html’ ,if editor is jce then click show/hide. I am using jce editor, I always use this đ
[code language=”html”]
{loadposition contentpos}
[/code]
Step 3: Publish your required module in module position
Now go to your module manager and publish module in that new module position .
Step 4: Set module position wrapping
Actually loading module in content item is done by a plugin, loadmodule . loadmodule is a content type plugin. So go to your plugin manager and filter plugins by content and check if the plugin named Content-loadmodule is published or not. Enable the plugin if unpublished. Go to the plugin configuration and check right side. There is option how the modules in content item will be wraped. See screenshot bellow
That’s all , any question ?
nice…