Jump to content

Revised default template


Recommended Posts

Hello

I took a look at 1.5 the other day, and I took a look at the new template.

 

There are some minor tweaks that I would like to recommend.

First, move the structure html from header.tpl and footer.tpl to layout.tpl. And then move the left column to the right of the content, that way the content appears higher up in the HTML code, and it's more SEF that way.

 

Why move structure to layout.tpl

Well, right now, you have tags starting in header, and ending in footer.... That's bad, it means that you can use IDEs built in code validation and auto complete, and it increases the risk of forgetting to end a tag, or adding an end tag too early. This also removes the need for having seperate header and footer files, or you can use it to only contain code for the rendered parts of the header and footer, for more segmented and cleaner code.

So the benefit is purely cleaner code.

 

Left Column

I have moved the left column to the right of the content, and then positioned it back to the left side with CSS (position relative). In order for the important stuff, like ... content too appear earlier in the code structure.

 

I have made a simple package of my revised default template. The only changes are the once noted here. I have only supplied the tpl files that are affected by code change.

 

Any comments on this would be much appreciated.

defaultrevised.zip

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...