Do menus adjust to new pages?
Posted: 03 April 2011 12:49 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  12-03-2008

If my end-user decides to add a page to his site, will the menus and menu states be adjusted automatically? I want him to be able to add a page easily, but I don’t want to have to hand code the CSS every time a page is added.

I’m especially concerned that the current/active state work automatically—so that when somebody visits a page the nav bar is highlighted (or however I designate that style). Most of the simple CMSs (Wordpress etc.) will do this automatically. I consider hand coding menus a royal pain!

Profile
 
 
Posted: 03 April 2011 05:13 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  53
Joined  02-17-2011

Hey Alohashirt,

As long as you are using tags to generate menus, they will display newly added menu items by end-users. Check out this page list tag:

http://mojomotor.com/user_guide/mojo_tags.html#page_list

The page list tag automatically adds a class to the current page as well.

In addition, one of the blocks in MojoBlocks is a sub pages block which just gives a little more flexibility when needing so show sub page menus.

http://www.addictaddons.com/mojoblocks/docs/blocks/sub-pages-block

So in short, yes - you can definitely have dynamic menus with MojoMotor. No hand-coding needed!

Adam

 Signature 

Add-ons for ExpressionEngine, MojoMotor, and PyroCMS
MojoBlocks | PyroStreams | Panel | Formojo

Profile
 
 
Posted: 04 April 2011 11:07 AM   [ Ignore ]   [ # 2 ]  
Chancellor's Fellow
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  30388
Joined  04-29-2002

Thanks for the assist, Adam..

Alohashirt, did the information from Adam help?

Profile
MSG
 
 
Posted: 18 February 2012 06:00 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  2
Joined  02-13-2012

Only edits to the help_wrapper template will need to be reapplied, the rest of the information is stored externally as an add-on.

Profile
 
 
Posted: 22 February 2012 05:39 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  3257
Joined  11-25-2011

Hello James,

Welcome to the forums!

I hope to see you around!

Cheers,

 

 Signature 

Recent version: EE 2.5 | 2.x Bug Tracker | How to Post a Support Request | Version Upgrade | New here? Get Plugged In!

Profile