How to pull module title from a specific position - Joomla! Forum - community, help and support
i pull name module when placed in position:
any appreciated.
code: select all
<div id="module title">module title here</div>
<div id="module">
<jdoc:include type="modules" name="some position" />
</div>
any appreciated.
this how did it.
first make new function.
then in index make new div this.
thats how solved problem
first make new function.
code: select all
function modchrome_functioname($module, &$params, &$attribs)
{
if (!empty ($module->content)) :
if ($module->showtitle) : ?>
<div id="module title"><?php echo $module->title; ?></div>
<?php endif; ?>
<div id="module"><?php echo $module->content; ?></div>
<?php endif;
}then in index make new div this.
code: select all
<div id="some name"><jdoc:include type="modules" name="some position" style="functioname" /></div>thats how solved problem
Comments
Post a Comment