Here the download
http://piratossmarty.pi.funpic.de/pimenu.zip
Docu as pdf in german (who will translate it ?)
With 2.0 you can create so much menus with smartytemplate you want - at once
The ideal partner for navigation in several parts.
you can choose statical or dynmaic menus
High Speed 5000 contents in a dynamic menu-system pesents one page within 1,8 seconds - cms CSSMENU needs 13 seconds.
Pimenu 2.00 Now with Multiple Menus
Updated to 2.01
new Update to 2.01 because PHP 4.4 errors
Speed measured
50 calls of a different page from 100 pages total local Linux - Webserver
Averages
CSSMENU - Original 0,40 Sekunden
pimenu with pimenu.tpl (works like CSSMENU) - 0,26 Sekunden
pimenu mit pimenu.tpl static (works like CSSMENU) - 0,13 Sekunden
With Windows (same PC) more than 100% slower
Just another test (only Windows local Webserver)
50 calls of a different page from 5000 (fivethousand !) pages total
CSSMENU -Original 11,70 seconds
pimenu with pimenu.tpl (works like CSSMENU) - 1,51 seconds
pimenu mit pimenu.tpl static (works like CSSMENU) - 0,43 seconds
Speed measured
50 calls of a different page from 100 pages total local Linux - Webserver
Averages
CSSMENU - Original 0,40 Sekunden
pimenu with pimenu.tpl (works like CSSMENU) - 0,26 Sekunden
pimenu mit pimenu.tpl static (works like CSSMENU) - 0,13 Sekunden
With Windows (same PC) more than 100% slower
Just another test (only Windows local Webserver)
50 calls of a different page from 5000 (fivethousand !) pages total
CSSMENU -Original 11,70 seconds
pimenu with pimenu.tpl (works like CSSMENU) - 1,51 seconds
pimenu mit pimenu.tpl static (works like CSSMENU) - 0,43 seconds
Last edited by Piratos on Sun Oct 30, 2005 7:11 pm, edited 1 time in total.
Re: Pimenu 2.00 Now with Multiple Menus..used for cascading multiple menus?!
Hi,Piratos wrote: Here the download
http://piratossmarty.pi.funpic.de/pimenu.zip
Docu as pdf in german (who will translate it ?)
With 2.0 you can create so much menus with smartytemplate you want - at once
The ideal partner for navigation in several parts.
you can choose statical or dynmaic menus
High Speed 5000 contents in a dynamic menu-system pesents one page within 1,8 seconds - cms CSSMENU needs 13 seconds.
Thank you very much for pimenu. It looks great and it seems easy to use.
I am very interested in a solution for "fake" a multilangural site.
Here is what I am trying to do:
I need 4-6 different language layers.I plan to use the existing menu structure in the following way
On the top of the page following menu:
metamenu : Index
Below the metamenu a topmenu depending on the metamenu:
topmenu: >
On the left handside a leftmenu depending on the topmenu:
leftmenu:
> selected>>
In short the metamenu should "cascade" the chosen item to topmenu and
the chosen item on the topmenu should cascade to leftmenu.
The solution will probably require that I only use 3 levels in the menu
as shown above.
Could you give me an idea of how to realize this in the best way?!
Thanks in advance for any help / kind regards / Lars
Re: Pimenu 2.00 Now with Multiple Menus
Pimenu delivers the menutext as it was in the cms.
And so you have only one language as the menutext.
How you want to manage this ?
And so you have only one language as the menutext.
How you want to manage this ?
Re: Pimenu 2.00 Now with Multiple Menus
Hi,
Yes, I understand fully that pimenu will only deliver what is in the database in the first place. I think pimenu is a great oppertunity to use in CMSMS and thank you for that.
What I want to do is just to create several independent menu strings in the existing database in such a way that each language has its own string with content translated to correct language. If I can show only one menu string at a time on the frontpage, then it will seem like different language layers. In the database, the structure will be similar to the following:
metamenu - Dansk (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - English (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - Swedish (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - Finish (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - etc...(parent_id=none)
::
::
Index (parent_id=none)
My question is the following: how could it be possible to use pimenu and shown only one menu string
at a time on the Frontpage as mentioned earlier?
E.g. could it be possible to show only the English string or only the Dansk string? And at the same time be able to switch between the menu strings (only from the toplevel ofcourse - metamenu)?
Thank you very much in advance for any help and kind regards / Lars
Yes, I understand fully that pimenu will only deliver what is in the database in the first place. I think pimenu is a great oppertunity to use in CMSMS and thank you for that.
What I want to do is just to create several independent menu strings in the existing database in such a way that each language has its own string with content translated to correct language. If I can show only one menu string at a time on the frontpage, then it will seem like different language layers. In the database, the structure will be similar to the following:
metamenu - Dansk (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - English (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - Swedish (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - Finish (parent_id=none)
I______________________topmenu
I__________________leftmenu
metamenu - etc...(parent_id=none)
::
::
Index (parent_id=none)
My question is the following: how could it be possible to use pimenu and shown only one menu string
at a time on the Frontpage as mentioned earlier?
E.g. could it be possible to show only the English string or only the Dansk string? And at the same time be able to switch between the menu strings (only from the toplevel ofcourse - metamenu)?
Thank you very much in advance for any help and kind regards / Lars
Re: Pimenu 2.00 Now with Multiple Menus
At first you must see, that the cms delivers his menu-entrys always in order with hierarchy.
You can never change this hierarchy with pimenu and you must work with this rules.
If you want a multilingual Web it is a good idea to have an order in admins listcontent
with sectionheaders.
Within the language - main - sectionheader you should use another sectioheaders to make
groups of contents.
if pimenu has the ability ( in Version 2.04 it is so) to show always the last sectionheader you can use it in a
if elsif question and so you can divide all contents in menu - groups
Example (SH == Sectionheader):
SH Danish
SH English
SH English-Activities
Content EN-Activities
Content EN-Personal Development
Content EN-Relation
Content EN-Creative Expression
SH English-Calendar
Contents
SH English-Courses
Contents
SH Swedish
SH Swedish-Activities
SH Finish
The Sectionheaders Danish, English, Swedish and Finish is only to divide all in logical groups
by admin listcontent.
{if $entry->current_sh eq "Danish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "English-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Swedish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Finish-Activities"}
Build your menu to the left - side
{/if}
But this will not suffice - you need a switch to display only Activities.
Since 2.04 you you can import a switch-variable pimsw as a $_GET - Value.
If you set a value as example in the top - level - menu of 1 to Activities in the menulink
(index.php?page=my_page&pimsw=1)
you can divide it all
{if $pimsw eq 1}
{if $entry->current_sh eq "Danish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "English-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Swedish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Finish-Activities"}
Build your menu to the left - side
{/if}
{elseif $pimsw eq 2}
build another group
{/if}
You can never change this hierarchy with pimenu and you must work with this rules.
If you want a multilingual Web it is a good idea to have an order in admins listcontent
with sectionheaders.
Within the language - main - sectionheader you should use another sectioheaders to make
groups of contents.
if pimenu has the ability ( in Version 2.04 it is so) to show always the last sectionheader you can use it in a
if elsif question and so you can divide all contents in menu - groups
Example (SH == Sectionheader):
SH Danish
SH English
SH English-Activities
Content EN-Activities
Content EN-Personal Development
Content EN-Relation
Content EN-Creative Expression
SH English-Calendar
Contents
SH English-Courses
Contents
SH Swedish
SH Swedish-Activities
SH Finish
The Sectionheaders Danish, English, Swedish and Finish is only to divide all in logical groups
by admin listcontent.
{if $entry->current_sh eq "Danish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "English-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Swedish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Finish-Activities"}
Build your menu to the left - side
{/if}
But this will not suffice - you need a switch to display only Activities.
Since 2.04 you you can import a switch-variable pimsw as a $_GET - Value.
If you set a value as example in the top - level - menu of 1 to Activities in the menulink
(index.php?page=my_page&pimsw=1)
you can divide it all
{if $pimsw eq 1}
{if $entry->current_sh eq "Danish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "English-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Swedish-Activities"}
Build your menu to the left - side
{elseif $entry->current_sh eq "Finish-Activities"}
Build your menu to the left - side
{/if}
{elseif $pimsw eq 2}
build another group
{/if}