plainblack.com
Username Password
search
Bookmark and Share
Standardize Layout Names For Templates  (#370)
Issue

In making the new themes I've been working on, one thing has come out clear: I don't have a way of being sure that any given theme I make will have the proper support for the various page layouts built in.

For example, I build a theme which is a two-column theme by default. If someone uses the theme with a 1 column layout, no problem. But if they use it with a two column layout, the second column could be called "sidebar", "col2" "column2", "secondary", etc. I have no way of knowing how to name classes/id's in the .css file to accomodate the various options.

What I would like to see is for all "Page Layout Templates" to use standardized names, so that we can make CSS templates work correctly for them.

Thank you! 

Solution Summary
Comments
rogier
0
4/18/2008 8:05 am

I myself have just started working on a concept for using themes  in WebGUI and I fully agree with you. But why only the layout templates? If we standardize all the templates, that would make it possible to make themes that affect the whole site, instead of only changing a header or the color of the links or some other minor thing.


The current templates have some standardized classes (e.g. pagination, tableHeader) but they are not always used consistently. Moreover, many templates have their own css, that wil always override your stylesheet, because it is placed in the head tag.

We should in my opinion:

  • remove all inline and head tag css from templates
  • come up with a number of standard classes, which are used consistently in every template (like the "pagination" class, as it used now)
  • remove all table layout that is used for positioning
  • replace template vars that are incorrect or not working (there are a few in the coll. system template)
  • come up with a set of rules for templates of new contributions (see also Arjan Widlak's email on the devlist: "The policy for contributions to the WebGUI core")

I would like to hear some opinions on this subject. Do we agree that the default templates are due for a makeover? Any other suggestions to be added to my list?

I understand that you are a WebGUI theme guru, Pedersen? What do you think?

Rogier | United Knowledge

JT
0
4/18/2008 8:36 am

I agree with what you're saying in premise, but do not have the resources to devote to doing the work. If a group of you would like to form a task force and start on this work I would accept it into the core. Just send packages of the templates you've modified to the dev mailing list as you get them completed.

rogier
0
4/19/2008 12:29 pm

OK, i'll start working on it. I'll start a thread in the design, templates & themes section to get some input from the community. Thanks JT.

rogier
5
2/9/2010 3:31 am
Hey, we fixed this one!
perlDreamer
0
2/9/2010 4:54 pm
Indeed.  Implemented in WebGUI 7.7.15.  Kudos to TWG!
Details
Ticket Status Resolved  
Rating5.0 
Submitted By pedersen  
Date Submitted2007-01-20 
Assigned To unassigned  
Date Assigned 2012-05-22  
Assigned By  
What to improve?  
URLrfe/request-for-enhancement/standardize-layout-names-for-templates
Karma
Difficulty 16  
Karma So Far5435
Karma Rank339.69
Keywords
Ticket History
2/9/2010
5:54 PM
Resolved perlDreamer
© 2012 Plain Black Corporation | All Rights Reserved