cssclass in sitemap.xml

Sep 7, 2010 at 12:35 PM

Hello

1. I love this project

2. I'm fighting against css and look for a more convient way to attach a separate cssclass to node in the sitemap.xml. Due to css inheritance it is hard to select only the submenu header and keep all subs as they are.

Maybe others will love it too: A cssclass attribute in the sitemap that will be added to each node ul/li item. Or just render the key as an id with a optional prefix into html

By this, we got full css power to any item that is rendered.

Or can this be handled easily in another?

 

Thanks for your reply.

Sven

 

 

Sep 9, 2010 at 6:50 PM

For now, I would say just copy the MenuHelper and implement your own logic. A node can contain custom attributes which you can use for that.

I'm planning on making the helpers more "fluent", where you can interfere in every step of the rendering process. Still thinking about a good API there though. Suggestions welcome :-)