I created a template on the Joomla 3.0.2 platform.The template is alright but I met an error: I can't add any module of Joomla to my template.Example, in file index.php I have a <div>
tag:
<div id="find"> </div>
I want include at this "Search" module, then I insert this code in tag div:
<jdoc:include type="modules" name="find" style="xhtml" />
Last, I update my templateDetails.xml:
<position> find </position>
But when I try to insert the "Search" module at the "find" position, it doesn't work, please help me fix this.
You have the following problems in your template:
In your manifest file <position> find </position>
is not the same with <position>find</position>
, so remove the whitespace. As a general rule, don't use whitespace between tags (in XML as well in XHTML).
Each folder should contain an empty index.html file.
Do not use absolute paths to link CSS and images.
Have a very close look at how Protostar template is build, you may learn a lot of things from there.