I'd like to style various components based on the page that is being viewed, but by default most page elements are not uniquely styled until too late into the css cascade.

#page #section-content #zone-content-wrapper #zone-content #region-content ... ... ... [some unique ID]

What is the best way to get a unique #ID earlier in the cascade with Omega? I imagine some hook would work, I see an $attributes var in most of the templates, should we be manipulating that var? Just looking for a best practice. thank you.

Comments

cborgia’s picture

Assigned: Unassigned » cborgia
Status: Active » Closed (works as designed)

Found solution, context module has a reaction "Theme HTML", with this reaction (and a given context) you can add classes to the page element.