Copy link to clipboard
Copied
Hello,
I am new to DW and I would like to keep the same header, menu and footer identical on each page, in fact only the content (body) of the page should change.
Should we copy on each new page (the header, nav, footer, ...) parts !!! : -0 or is there a simpler and faster way on DW directly to be able to do it ??
Rem: I believe there is an include command (but if I understand correctly then I have to use some PHP: - ((which I would like to avoid ..)
thank you so much
Copy link to clipboard
Copied
Have a look at https://www.youtube.com/watch?v=NE4qfOvPxGc&t=12s
Copy link to clipboard
Copied
I know you say you prefer not to use PHP. But at its most basic the php required to do this is very simple.
All you need to do is:
1. Change the suffix of the page from .html to .php but it will till recognise the usual html.
2. Insert the following line the html eg for a footer:
<?php include_once('includes/footer.php') ?>
(includes/footer.php is the relative path and file)create eg footer.php but write it the same as though you are writing html.
Now if you want to change anything in the future you only have to alter one file, eg footer.php. Or if you want to add another menu item in the future.
And that is only the start of what you can do. If you wanted to look into it further you could use php so that the menu tab of the current page had different .css settings.
I don't know about templates though, so that may suit your needs better.
Copy link to clipboard
Copied
Php includes is your best option.
Dreamweaver templates are a propriotary workflow in Dreamweaver which can easily become corrupt in my experience. You will also have to upload each page of your website when you update the template, which could be an uneeded irritational as your website grows. So best avoided where possible unless your website is only going to be a handful of static pages.
Javascript would be your second best option, as unlike php, it requires no server set up if you intend to work locally.
Copy link to clipboard
Copied
Javascript would be your second best option, as unlike php, it requires no server set up if you intend to work locally.
=======
Right. JS includes are OK but not 100% reliable. There will always be some outliers with client-side script-blockers who can't see them.
When a foolproof solution is essential for everyone, server-side includes are numero uno.
After the local testing server is installed and defined (5 minute set-up), it's smooth sailing from there.
- Wamp server - https://www.wampserver.com/en/
- Xampp server - https://www.apachefriends.org/index.html
- Mamp or Mamp Pro server - https://www.mamp.info/en/downloads/
Set-up Localhost in Dreamweaver
https://helpx.adobe.com/dreamweaver/using/set-testing-server.html
Copy link to clipboard
Copied
Javascript would be your second best option, as unlike php, it requires no server set up if you intend to work locally.
=======
Right. JS includes are OK but not 100% reliable. There will always be some outliers with client-side script-blockers who can't see them.
I dont concern myself about the handful that turn off/block javascript - vue, react and the rest of those websites built with modern front-end javascript frameworks simply wouldnt function.
Copy link to clipboard
Copied
depending on the complexity of your web site, the period of content update, and the total number of page, ... running Templates, as suggest you @BenPleysier is a nice way to go.
Copy link to clipboard
Copied
Templates, as suggest you @BenPleysier is a nice way to go.
By @B i r n o u
Seriously.......I think most who have been around for longer than a couple of years doing this have moved to better, more stable solutions. Almost every time I did use DWT templates, a long, long time ago, there were occasions when they failed to update a certain page or two to which the template was attached ending up in having to detach the template to do anything and then the 'link' was broken and repairing it wasnt that easy.
DWT template files are for beginners developing static pages and websites with a limited number of pages. Once you discover better options you'll kick yourself that you hadn't used them earlier.
Not even Ben uses DWT files these days.
Copy link to clipboard
Copied
well, I know that you're not in favor of DWT. Well, for small web site, that doesn't need frequent update, and that doesn't rely on any databases... Templates as I said is a nice solution.
for info, when a child has its link corrupted with the template itself, just drag and drop the template on the child page rendering... and hop... it is instantly restored
Copy link to clipboard
Copied
well, I know that you're not in favor of DWT. Well, for small web site, that doesn't need frequent update, and that doesn't rely on any databases... Templates as I said is a nice solution.
for info, when a child has its link corrupted with the template itself, just drag and drop the template on the child page rendering... and hop... it is instantly restored
By @B i r n o u
No-one outside of the DW environment would be in favour of it and lets face it the new generation of serious web-developers arent going to be using Dreamweaver. I take my lead from what happens/is happening in the professional world of web-development, not some pre-school forum.
Copy link to clipboard
Copied
No-one outside of the DW environment would be in favour of it
By @osgood_
just because they are not aware of this tool, and have never used it....
Copy link to clipboard
Copied
No-one outside of the DW environment would be in favour of it
By @osgood_
just because they are not aware of this tool, and have never used it....
By @B i r n o u
Lol, right - all those professionals will be knocking down the door to implement dwt templates over php or node includes, dream on.
If it works for you thats great but trying to suggest that professionals would see this worflow as a must have and suddenly opt to use DW over their current editor and workfow is somewhat amusing.
Copy link to clipboard
Copied
all those professionals will be knocking down the door to implement dwt templates over php or node includes, dream on.
By @osgood_
the problem with PHP developers is that the frustration with a DWT is so strong that questioning it becomes unlikely....
as for Node developers, the problem is that the simplicity of use of DWT becomes disconcerting in front of the complexities of adjustment of a simple Beep emitted under the overlying encapsulation of the V8 engine
the inherent encapsulation of a POJO class results from a non-recursive polymorphic model... which is far from being the case on a structured and consciously built DWT, using cleverly arranged variables... and that's not an understatement!
Copy link to clipboard
Copied
all those professionals will be knocking down the door to implement dwt templates over php or node includes, dream on.
By @osgood_
the problem with PHP developers is that the frustration with a DWT is so strong that questioning it becomes unlikely....
as for Node developers, the problem is that the simplicity of use of DWT becomes disconcerting in front of the complexities of adjustment of a simple Beep emitted under the overlying encapsulation of the V8 engine
the inherent encapsulation of a POJO class results from a non-recursive polymorphic model... which is far from being the case on a structured and consciously built DWT, using cleverly arranged variables... and that's not an understatement!
By @B i r n o u
If you could supposedly deepdive and have a good understanding of the galatic metamorphosis, the biological process and structure which combine the translated under-thyroid gland combined with a truncated synonym which could over-ride the refined performance of the well documented domino effect it might be a decent enough choice - apart from that its all quite simple, really.
Copy link to clipboard
Copied
I extensively used this Dreamweaver extension, which is based on DWT, until I started to develop in NodeJS/Express.
Copy link to clipboard
Copied
Its not actually based on DWT templates its converting them to something seemingly better if you read the text.
Quote:
'When you update a Dreamweaver template (DWT), all your files associated with that template need updating and re-publishing, a large risk for any site' - Regardless, it's worth adjusting to this process since maintenance will improve and the amount of files you need to publish after a change will be greatly reduced.
It might be one step up the ladder from DWT templates, I dont know as I havent used it but I have used DWT files and I'm not going back to some arcahic workflow when there are better and more robust solutions, once you get past the amatuer stage.
Copy link to clipboard
Copied
Its not actually based on DWT templates its converting them to something seemingly better if you read the text.
By @osgood_
I am glad that you rectified my stupid statement that the extension is based on DWT. At that stage I had not viewed
https://youtu.be/45T3UIzEfNM. Come to think of it, I may have been tight after all.
Copy link to clipboard
Copied
Doesnt that video just reinforce what lve been posting, that DWT templates arent viewed as being fit for purpose other than in a very limited senario, the simplest of websites, with just a handful of pages? So lm not really sure why youre jumping out of your box, back tracking and flip flopping and even admitting youre now using a more advanced workflow.
Copy link to clipboard
Copied
Doesnt that video just reinforce what lve been posting, that DWT templates arent viewed as being fit for purpose other than in a very limited senario, the simplest of websites, with just a handful of pages? So lm not really sure why youre jumping out of your box, back tracking and flip flopping and even admitting youre now using a more advanced workflow.
By @osgood_
Where on earth did all of this rubbish come from? All I said was
I extensively used this Dreamweaver extension, which is based on DWT, until I started to develop in NodeJS/Express.
This does not reinforce anything except that the DW extension piggybacks on DWT and that Express is a templating engine for NodeJS. I never said anything about advanced workflows. Different? Yes.
Distancing oneself from Dionysos, may be a saving grace.
Copy link to clipboard
Copied
Doesnt that video just reinforce what lve been posting, that DWT templates arent viewed as being fit for purpose other than in a very limited senario, the simplest of websites, with just a handful of pages? So lm not really sure why youre jumping out of your box, back tracking and flip flopping and even admitting youre now using a more advanced workflow.
By @osgood_
Where on earth did all of this rubbish come from? All I said was
I extensively used this Dreamweaver extension, which is based on DWT, until I started to develop in NodeJS/Express.
This does not reinforce anything except that the DW extension piggybacks on DWT and that Express is a templating engine for NodeJS. I never said anything about advanced workflows. Different? Yes.
Distancing oneself from Dionysos, may be a saving grace.
By @BenPleysier
I was under the impression that this thread has now predominately turned to discussing the merits or not as the case may be of using DWT templates.
If it is then the video you linked to, lm not sure why you linked to it because other than confirming the downsides of deploying DWT templates, which lve aready eluded to in previous posts in this thread it doesnt really provide any positive input or further the discussion it just reinforces my views.
And then theres the case of you recomending DWT templates but then say you dont use them any more, because you have discovered a better solution obviously, is somewhat flip flopping around.
Distancing ones self, yes, but from people who cant speak plain English and people who contradict themselves, could well be a saving grace.
Copy link to clipboard
Copied
As usual, you are being irrational in your discussions and this is turning into something that I do not stand for,
Distancing ones self, yes, but from people who cant speak plain English and people who contradict themselves, could well be a saving grace.
By @osgood_
All I can say is, `va te faire foutre` and as I said before `distancing oneself from Dionysos, may be a saving grace`.
Copy link to clipboard
Copied
As usual, you are being irrational in your discussions and this is turning into something that I do not stand for,
Distancing ones self, yes, but from people who cant speak plain English and people who contradict themselves, could well be a saving grace.
By @osgood_
All I can say is, `va te faire foutre` and as I said before `distancing oneself from Dionysos, may be a saving grace`.
By @BenPleysier
LOL, now you ARE showing your true colors.
There's nothing irrational about my discussions. As you know very well I leave no stone unturned and don't suffer fools gladly.
As for being accused of becoming aggressive well you go beyond the pale in your very thinly disguised and veiled attempt to personally abuse me. I wont stoop that low though I'll leave that to you.
You're an absolute disgrace Ben and are not fit to represent Adobe and should be ashamed of yourself. If Adobe doesnt remove that obcene abuse then they are as bad as you.
Have a nice day yourself, maybe that is what you were really trying to say.
Copy link to clipboard
Copied
You're an absolute disgrace Ben and are not fit to represent Adobe and should be ashamed of yourself. If Adobe doesnt remove that obcene abuse then they are as bad as you.
By @osgood_
That is an intersting take on what I said.
I have a feeling that you are turning "va te faire foutre" in a a literal translation instead of using the semantic shift of the meaning in the French language.
I guess fools will be fools and like you, I do not tolerate them.
I do not see an apology for your racist remark, which should most certaily be removed.
Copy link to clipboard
Copied
Its quite clear exactly the implication in which you used the widely know term, its no f****** secret my friend, you might be a fool but l am most certainly not.
What racist remark are you talking about?
Copy link to clipboard
Copied
Its quite clear exactly the implication in which you used the widely know term, its no f****** secret my friend, you might be a fool but l am most certainly not.
By @osgood_
How about "sod off" which is the sematic meaning in France.
Distancing ones self, yes, but from people who cant speak plain English and people who contradict themselves, could well be a saving grace.
By @osgood_
The most likely reason why a racist fool would misinterpret a French sentence. I could say, in the most polite of company, je m'en fous (a form of foutre), and nobody would bat an eyelash.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now