Joomla 1.5 - Make an "if" statement based on the component loading at one time
joomla 1.5,
php
on October 27, 2008
For some reason, selecting on what pages to show a block from admin doesn't work all the times.
Example, i wanted the breadcrumb module to show only on the gallery(rsgallery2), but selecting the gallery from "Menu Assignment" in mod_breadcrumbs settings worked only for the first page of the gallery, and not for the rest of the pages in gallery.
This is what i have done in the index file of the theme:
<?php if (JRequest::getVar('option')=='com_rsgallery2'){ ?>
<div id="breadcrumb">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<?php } ?>
The module will be printed only on rsgallery2 pages.



thx!!!
thank you so much !
your explicit title helped me to find this quickly
Thanks a lot!! :)
Post new comment