How do I load a Component inside a Module? - Joomla! Forum - community, help and support
i don't want use <jdoc:include type="component" /> in index.php
i want able put, say, search results component inside module , select it's position.
because having <jdoc:include type="component" /> in index.php means has load in same spot in template every time. can't choose it's position.
i've searched everywhere online, nobody has solution. i've tried including <jdoc:include type="component" /> in advanced php, javascript, html module extensions , doesn't work.
i want able put, say, search results component inside module , select it's position.
because having <jdoc:include type="component" /> in index.php means has load in same spot in template every time. can't choose it's position.
i've searched everywhere online, nobody has solution. i've tried including <jdoc:include type="component" /> in advanced php, javascript, html module extensions , doesn't work.
here quick example of template.
i want able put component in module , load in either "position1", 2, or 3, can different positions on select pages.
i want able put component in module , load in either "position1", 2, or 3, can different positions on select pages.
code: select all
<html>
<body>
<jdoc:include type="component" />
<jdoc:include type="modules" name="position1" style="xhtml" />
<jdoc:include type="modules" name="position2" style="xhtml" />
<jdoc:include type="modules" name="position3" style="xhtml" />
</body>
</html>
Comments
Post a Comment