Developer forum

Forum » Development » Suggestions to basic layout of templates

Suggestions to basic layout of templates


Reply

 




I have recently started looking into templates, and have started work on the basic layout of the site I'm working on. But I am not quite sure where the best/corrent place is to put the header and topmenu.




Basically I have two types of pages, described in the two mockups below.




http://src.pd2.dk/mockup_leftbox.gif




This scenario is used at most pages. The leftbox is not a DW menu as such, but more a list of links to different sort/search results.




http://src.pd2.dk/mockup.gif




Other pages dont have this sort/search box, and therefore have more room for the actual content. 




What would be the correct way to make my templates? Can I put the header/topmenu in the master template? If I make two page templates each with the header/topmenu, then I would have to edit both templates if we make changes to the top of the website, right ?




What would be the best practice approach?


 


Edit: Just realized I posted this in the wrong forum, could an admin please move this to the Template forum?


Replies

 
Reply

The master templates concept was developed to allow you to modify the HTML outside the body tags for doc type declarations, creator information and so. It would make good sence to place content that is to be used on all pages on all areas in a global place like the master template, but remember that is has to be modified here to. This content may change regularly, and your client would need HTML skills in order to modify this in the master template. If a new top graphic is needed, you wouldn't be able to change this in the stylesheet or at page level, hence you would have to change this in the HTML code.


 


Best practice is to use the regular page template approach.

 
Reply
Sorensen wrote:


The master templates concept was developed to allow you to modify the HTML outside the body tags for doc type declarations, creator information and so. It would make good sence to place content that is to be used on all pages on all areas in a global place like the master template, but remember that is has to be modified here to. This content may change regularly, and your client would need HTML skills in order to modify this in the master template. If a new top graphic is needed, you wouldn't be able to change this in the stylesheet or at page level, hence you would have to change this in the HTML code.




 




Best practice is to use the regular page template approach.


Its not an issue wether or not to edit directly in the HTML, since we make this website for ourselves, and not a client. But if the best way to do it is to keep these things in the page templates, eventhough it means having redundand info, then this is the way we do it.
 
Reply

In that case I would choose whatever was easiest to implement and maintain.

 

You must be logged in to post in the forum