This is a discussion on "Dreamweaver and templates..." within the Web Page Design section. This forum, and the thread "Dreamweaver and templates... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Dreamweaver and templates...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Dreamweaver and templates...
Currently with my site when I want to update something on all pages I have to make the change to the template in dreamweaver and then search all pages that use that template and let dreamweaver update the code and then reupload the pages....
Is it possible to have 1 template uploaded and have all pages that use that template just point to it, so when I want to make a change, all I have to do is change that 1 template file and it will take effect to all pages. This way I dont have to reupload. I would load pages quicker I would assume. |
|
|
|
#2
|
|||
|
|||
|
Well.. This is one of the few reasons that I like flash movies for updatable things. You only have to edit it once and upload one thing and it changes the whole site. I don't think it is possible with HTML... but it might be with another language.. I would like to know the answer to this myself.
|
|
#3
|
|||
|
|||
|
would css files help in this at all?
|
|
#4
|
|||
|
|||
|
There are many CGI/PHP/ASP/JSP you name it..(!) scripts that are capable of doing this - I wrote one myself.
They take a template file, and wrap it around your content. A quick surf of the web will bring up some results no doubt. Check out: http://www.hotscripts.com/ as they always have something for free... You will need to have a server that supports one of the above technologies. You can also use SSI (SHTML pages) and have 2 include files. One for before your content and one for after? Oh and Kulegamr, Flash is only a highly updatable medium, if you MAKE it that way. |
|
#5
|
|||
|
|||
|
cool thanks...ill check that out...im currently using asp vbscripts so thats good i guess
|
|
#6
|
|||
|
|||
|
what exactly would that be called ?
|
|
#7
|
|||
|
|||
|
Sirkent can you explain how to do that a little more or link me to some place that can...not finding much on that site
|
|
#8
|
|||
|
|||
|
ASP > Scripts > Content Management
http://www.hotscripts.com/ASP/Script...ent/index.html There's a lot in there but have a trawl and something should take your fancy. I don't have much experience with ASP scripts, so... can anyone else recommend any famous ASP content scripts? |
|
#9
|
|||
|
|||
|
dont think i really need a tool...just wondering what code would be for something like that.....
just my guessing...but I would think it would be something like a inlcude statement which points to the template fill...then all content for that specific page would be inserted into the editable region... |
|
#10
|
|||
|
|||
|
On a very basic level, yes, that's right. Then all pages you create import the template.
Another way is to have 1 file with different variables passed to it that loads your content. Or alternatively, a function which rewrites the paths in your template on the fly so that the template will display anywhere on your site, even in subdirs, etc. But your way should work fine yes :razz: |
|
#11
|
|||
|
|||
|
Depending on what you are wanting... you could always make it a JavaScript file and just load that into all of your pages. but.. I know that is not the best way to do it.
|
|
#12
|
|||
|
|||
|
ok well the problem is I really dont know how to do either of those ways...lol...would it just be a few lines of code for an include statement?....anyone have any examples?...and which way would be best for fast loading?
thanks |
|
#13
|
|||
|
|||
|
With SSI (.shtml) files that are supported on many, many, hosting accounts (check with yours), you can use include statements to include text files straight into your file.
For example. This site is fairly basic, but should help you if you need it: http://library.thinkquest.org/15074/ssimain.html Anyone knows any better sites? |
|
#14
|
|||
|
|||
|
I Don't know if this would help but dreamweaver has a built in template feature i have written a guide which can be found here
http://htmlschool.co.uk/htmlschool04/dmx/templates.html Sam Lad |
|
#15
|
|||
|
|||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by señorbadger
I Don't know if this would help but dreamweaver has a built in template feature i have written a guide which can be found here http://htmlschool.co.uk/htmlschool04/dmx/templates.html Sam Lad <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Yes, Sam, The original post mentioned this, but asked if there was a way to update all the pages in the site automatically, I.E. - They all just point to a template file, rather than having to upload a whole site everytime a template change occurs. |
![]() |
| Tags |
| dreamweaver, templates |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dreamweaver Templates | ferrycenter13 | Starting Out | 5 | Mar 26th, 2008 09:48 |
| Dreamweaver Templates | Jenski | Scripts and Online Services | 0 | Jan 14th, 2008 10:10 |
| Dreamweaver, Templates, Sub users | R8515198 | Web Page Design | 1 | Sep 12th, 2007 15:38 |
| Graduating from Dreamweaver templates | snappy | Web Page Design | 12 | Oct 27th, 2006 15:46 |