How to create new/modify existing plugin to have text based menu?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
silentsc

How to create new/modify existing plugin to have text based menu?

Post by silentsc »

Hi! I'm having problem here specifically on how to create menu(pages) display on different levels.

For example...

Main Menu 1
- Sub1 Menu 1
- Sub1 Menu 2
Main Menu 2
- Sub2 Menu 1
+- Sub2 SubMenu 1
+- Sub2 SubMenu 2
- Sub2 Menu 2

Could anyone please advice...
Piratos

Re: How to create new/modify existing plugin to have text based menu?

Post by Piratos »

Take pimenu with bullet.tpl

{foreach from=$rawmenu item=entry}
{if $entry->type 'separator' and $entry->url''}
{$entry->indent}{$entry->bullet}url}"{if $entry->iscurrent eq 1}class="currentpage"{/if}> {$entry->menutext}

{elseif $entry->type =='separator'}

{/if}
{/foreach}


Delete  {$entry->bullet} and you have a text based menu or write a new template.
Locked

Return to “CMSMS Core”