Unique content blob class or ID for additional CSS flexibility
Posted: Wed Feb 28, 2007 11:58 pm
I have a feature request that I believe will be very useful to developers.
The {content} tag could have an optional CSS class parameter under the "Options" tab.
Or the content area populates a CSS class parameter automatically based on the "Page Alias."
I think a class rule would be better than an id because a page can have multiple content areas and an id can not appear twice inside the same html page.
I realize that the body tag int he html ouput has an ID assigned. But sometimes I get results like, id="pagesitemap", and id="page58"
It would be real cool if after adding the {content} tag into a template, the resulting HTML would look like,
///content here///
Again I realize the body ID can suffice in most cases, but having an unique class for each content area would add greater flexibility and ease of use.
Thanks!
The {content} tag could have an optional CSS class parameter under the "Options" tab.
Or the content area populates a CSS class parameter automatically based on the "Page Alias."
I think a class rule would be better than an id because a page can have multiple content areas and an id can not appear twice inside the same html page.
I realize that the body tag int he html ouput has an ID assigned. But sometimes I get results like, id="pagesitemap", and id="page58"
It would be real cool if after adding the {content} tag into a template, the resulting HTML would look like,
///content here///
Again I realize the body ID can suffice in most cases, but having an unique class for each content area would add greater flexibility and ease of use.
Thanks!