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
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
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.

Andi
> --
> You received this message because you are subscribed to the Google Groups
> "simple-navigation" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simple-navigation/-/6gWSytdCgtIJ.
> To post to this group, send email to simple-n...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-navigat...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-navigation?hl=en.
Reply all
Reply to author
Forward
0 new messages