Unique content blob class or ID for additional CSS flexibility

Talk about new features for CMSMS and modules.
Post Reply
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Unique content blob class or ID for additional CSS flexibility

Post by JohnnyB »

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 art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
cyberman

Re: Unique content blob class or ID for additional CSS flexibility

Post by cyberman »

mww wrote:
///content here///
Sense of a CMS is dividing content and layout. xHTML and CSS have to go to template. And {content} is only a place holder for content and should not missused as layout.

The easier way is to create a separate template for your sitemap page (with your posted source) and attach this template to sitemap page.

Another option could be a way over smarty where you can make requests for page ID's and so other.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Unique content blob class or ID for additional CSS flexibility

Post by JohnnyB »

Another option could be a way over smarty where you can make requests for page ID's and so other.
That would be a good solution.  Much better than having to manage several templates and preserves separation of content and presentation.

Thanks for the good idea!
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Feature ideas”