Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
This week, we're updating our course layouts and descriptions. Presentation and materials always gently change over time, but just occasionally there's a need to make a step change to clear out some of the old and roll in the new. That's now happening - but over a long and complex site it's not instant and you'll see sections of the site changing up to and including 19th September.

See also [here] for status update
 
DreamWeaver Template Tags and Scripts

Posted by TedH (TedH), 2 March 2008
I won't use DreamWeaver because of it's poor coding techniques. However one of my clients does and I have just spent most of a weekend tearing my hair out over a vertical shifting between her pages and the ones I'm doing that are running from some Perl scripts.

It's taken me a day to realise that the DW template tags create vertical spaces. HTML is expecting something here, making room for it and of course it isn't there - but the space remains.

That is because they are exactly like server side include tags, with: a less than bracket, two hyphens, a space, the code, a space, two hyphens and the more than bracket.

Now this is alright if all you ever use is DreamWeaver, but once you begin to do stuff in a server side language you will run into this problem. the solution is to include the tags into any HTML code that will show on the site from the script. I would assume this will also apply to Java, PHP, Ruby, TCL and every other scripting language. You will have to play around until the shift stops. In this case there were "TemplateBeginEditable" and "TemplateEndEditable" tags in the HTML header.

If you are calling a script in the middle of a page, this might also happen depending on where the template tags are in relation to your SSI tag. It will more than likely be a trial and error method to get things stable.

Posted by admin (Graham Ellis), 3 March 2008
Many thanks for that tip, Ted!



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho