Method to check if second level exists for an item?
33 views
Skip to first unread message
ja...@centrelearn.com
unread,
Jan 19, 2013, 9:42:24 AM1/19/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-n...@googlegroups.com
Hi all,
Is there a method to determine if a second level exists for a given item? I change my layout based on the presence of a subnavigation and this method would be helpful so I don't have to test for string names.
Thanks,
Jason
Andi Schacke
unread,
Jan 30, 2013, 3:38:24 AM1/30/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-n...@googlegroups.com
Hi Jason,
please check SimpleNavigation::Helpers#active_navigation_item in the
source code. You can use it for checking if there is an active
subnavigation item.