14
I tried your second suggestion by adding a new module with it's own block. The new module and block is based on the sample_module available withn the forum. I added the following main menu code to the sample_filename.html file under the sample_module/template/block directory. It did not work probably because the new module and block do not have access to the MAIN MENU smarty variables (I am assuming this! )such as $xoops_url, $block.lang.home etc ...
MAIN MENU SYSTEM BLOCK
<td id="mainmenu">
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
I AM OBVIOUSLY MISSING A CONCEPT HERE!
Will my new main menu block only work if I add it to the system module?
If so, does this mean I would have to redefine these smarty variable in my new module?
How can I create a new module and associated block and have them be able to access the system smarty common variables?
Confused, but thankful for any help.