- 帖子: 28
- 收到的致谢 0
First you need to add your position to the XML file. You'll see a whole bunch already in there, just follow that example.
Next, in the index.php file, you have to add your position into the website code.
Below <jdoc:include type="component" /> (since you want yours below the text), add in something like:
<?php if($this->countModules('user2')) : ?> <jdoc:include type="modules" name="user2" style="xhtml" /> <?php endif; ?>
Thats assuming there that your module position is named user2. Its basically saying that if theres anything published to the position user2, it creates that position on the site.
If you want to be able to style your module, add a div into the code, like:
<?php if($this->countModules('user2')) : ?> <div id="example"> <jdoc:include type="modules" name="user2" style="xhtml" /> </div> <?php endif; ?>
You can now use that div ID in the CSS file for styling your module