Jump to content

Mambo Open Source/Hiding pathway on frontpage

From Wikibooks, open books for an open world
TOC
Chapters
Home
Configuration
Design
Content
Development
Miscellaneous

If you want to hide the pathway on the front page, you simply have to wrap it in a piece of PHP code. Here is an example of the code all together:

<?php if ($option == "com_frontpage") { } else { ?>
<tr>
   <td><?php mosPathWay(); ?></td>
</tr>
<?php } ?>

This returns nothing if the variable option = com_frontpage, and gives the code between the php tags if option is anything else than "com_frontpage". This variable can be exchanged with other variables if that is needed, but this works with the default homepage setting in mambo.