The how to is not extremely useful but I finally figured out last night (before you posted) how to put it into my webpage. (I had missed the plugins directory entirely.) Now I have been experimenting with trying to convert my menu into the pimenu format which I thought I could manage to do, but it isn't working. (also, I have a few questions, since I don't understand some of the tag explanations, and also there is no list of values for tags either)
I'm pretty sure that this is the relevant code from my original menu system:
Code: Select all
// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["Menu"] //create header
ssmItems[1]=["Home", "index.html", ""]
ssmItems[2]=["History", "history.html",""]
ssmItems[3]=["Archives", "Chats/Chats.html", ""]
ssmItems[4]=["Photos", "individual/index.html", "_new"]
ssmItems[5]=["Links", "links.html", ""]
ssmItems[6]=["Guestbook", "Guestbook.html", ""]
ssmItems[7]=["Search", "cgi-bin/search.cgi", "", 1, "no"] //create two column row
ssmItems[8]=["Contact", "Contact/contact.html", "",1]
buildMenu();
This is what I did to try to make it work with CMSMS and pimenu:
Code: Select all
{foreach from=$rawmenu item=entry}
{if $entry->type eq "separator"}
ssmItems[{$entry->number}]=["{$entry->menutext}", "", ""]
{if $entry->next_level > $entry->depth}
{if $entry->type eq "link"}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", "{$entry->target}"]
{else}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", ""]
{/if}
{elseif $entry->next_level eq $entry->depth}
{if $entry->type eq "link"}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", "{$entry->target}"]
{else}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", ""]
{/if}
{elseif $entry->next_level < $entry->depth}
{if $entry->type eq "link"}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", "{$entry->target}"]
{else}
ssmItems[{$entry->number}]=["{$entry->menutext}", "{entry->url}", ""]
{/if}
{$entry->trenner2}
{/if}
{/if}
{/foreach}
I did this directly in the js file (after making sure that it showed up with the original tested and working text). then tried the whole script inside the tag of my page. (inside {literal} tags, and then with {literal} wrapping everything but the part with pimenu/smarty variables.) As soon as I try to switch it to the pimenu format it quits displaying.
Does anyone have any suggestions to try or any idea what I am doing wrong?
Secondly, I am going to want 2 menus on a given page and I don't know how to specify what levels to load on each one. The left hand menu (script I am trying to fix above) I want to only supply the top level links. The right hand menu should change depending on what page I am on, showing parents, siblings, and childs of the current page, except for the top level links. I can tell that I need to use tags like load level, next level, etc but I don't understand how to use them.
I keep experimenting in between posts here but this is all a lot different than what I have done before and I don't know what I am doing at all - so it makes it even harder when all the instructions are in badly translated english.

I have made some progress though and once something clicks, THEN I understand the translation..hehe