Go Back   Webmaster Forum > Development > Web Development
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Newbie
Posts: 45
Join Date: Feb 2008
iTrader: (0)
DreamWeaver: How to create a template(?) - 03-04-2008

Let's say that I want to create a very basic website that has five pages or so. All pages have the same header, footer and navigation. Obviously, it's very inefficient to create these in all pages page by page. Does DreamWeaver have a feature to create a ... template? What I want to do is to create common components like header, footer and navigation just once. Also if and when I modify them, I want all other pages to be updated automatically. Can this be done using DreamWeaver?


online.education
Reply With Quote
  # 2 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,121
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
03-04-2008

Yes. All this can be done in Dreamweaver.

First create a demo [skeleton] HTML page.
With the basic header, footer and sample main content.

Then create "editable regions". (Insert -> Template Objects -> Editable Region)
mark only that regions which will change in individual pages.

Save it as a HTML template.

The next time you create a HTML page, use this template to create. There would be an option by the name "Update page when template changes". Make sure it's checked.

Now whenever you would update the base template, it would ask you when saving "Update all files based on this template?". Click on the 'Update' button there, to update all the pages accordingly, autmatically.

Reply With Quote
  # 3 (permalink)
Old
Senior Geek
Posts: 591
Join Date: Jan 2008
iTrader: (0)
Location: Craiova
03-04-2008

Yep make the design in Photoshop, then apply slices export as a html
then code the result and u're done
Reply With Quote
  # 4 (permalink)
Old
A Lazy Freelance Web Developer
Posts: 2,121
Join Date: Feb 2007
iTrader: (0)
Location: Bhopal (MP, India)
03-04-2008

@ISRdesign:

I guess that not what he (online.education) wanted.
He was asking about the templating system in Dreamweaver itself.
Reply With Quote
  # 5 (permalink)
Old
Senior Geek
Posts: 591
Join Date: Jan 2008
iTrader: (0)
Location: Craiova
03-04-2008

Quote:
Originally Posted by Shadab View Post
@ISRdesign:

I guess that not what he (online.education) wanted.
He was asking about the templating system in Dreamweaver itself.
Sorry, I couldn't understand earlier :P
Reply With Quote
  # 6 (permalink)
Old
Newbie
Posts: 31
Join Date: Jan 2008
iTrader: (0)
03-06-2008

Wow amazing tutorial dude!!


Thanks

I will share it on other forums
Reply With Quote
  # 7 (permalink)
Old
DON
Junior Geek
Posts: 120
Join Date: Feb 2007
iTrader: (0)
Location: Old is Gold.
03-07-2008

Thanks Shadab, That was a nice tutorial.


D O N
Reply With Quote
  # 8 (permalink)
Old
Designing Team Leader
Posts: 87
Join Date: Jun 2008
iTrader: (0)
Location: guidelineproducts.com
06-28-2008

Yeah, great tutorial man! I'll come to you for dreamweaver help!


GuidelineProducts.com
I'm Selling : digitalpointer.net digitalpointer.info digitalpointing.net digitalpointing.info
Get a huge discount if you buy whole pack
Reply With Quote
  # 9 (permalink)
Old
Newbie
Posts: 5
Join Date: Jul 2008
iTrader: (0)
07-07-2008

Here's what I recommend create a header.php file (will be the top), a footer (will be the bottom) and then you're index.php or about.php file (doesn't matter)... And then you don't have to edit every page to fix the header or the footer.

I don't use dreamweaver, I use... well nothing... my brain... I guess?
Reply With Quote
  # 10 (permalink)
Old
Newbie
Posts: 35
Join Date: Jul 2008
iTrader: (0)
07-17-2008

Quote:
Originally Posted by joethebeakdown View Post
Here's what I recommend create a header.php file (will be the top), a footer (will be the bottom) and then you're index.php or about.php file (doesn't matter)... And then you don't have to edit every page to fix the header or the footer. I don't use dreamweaver, I use... well nothing... my brain... I guess?
when we are create site using joomla . It also create 3 files index.php that is main file. and another file is for footer and header.
Reply With Quote
Reply


Thread Tools



PSD to HTML

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com