andi/simple-navigation — Issue #89: Different name_generator for sub-menu items?
Author: jasonpaluck
Created: 2012-02-25 16:32:24+00:00
State: open

Hi everyone,

I'm using name_generator to wrap my main menu items in custom HTML like so:

navigation.name_generator = Proc.new {|name| "#{name}"}

I also have a left-navigation sub-menu where the items, in my current design, require a fundamentally different HTML wrapper. I've tried to specify .name_generator in the sub-menu block to no avail. Is there any way to accomplish specifying a different name-generator for the second level items?

Thanks,

Jason