Solved

Trouble with Nested Templates & Template Expressions Options

Posted on 2008-10-01
1
215 Views
Last Modified: 2010-04-25
Everything has been rolling along in my project just fine, but this morning I
hit a snag. I have two challenges and have spent hours trying to figure it out.
I'm hoping someone out there can help. Note also that I cannot disable the
template re-write option to fix this issue. I'm building a template framework
for others to use and have to work within Dreamweaver's default preferences.

 First, I have a master page template that I want to use to create
second-generation layout templates. The master page template has specific links
to CSS documents in a master library living on our server OUTSIDE of the
Dreamweaver project folder. A link might look like


 (../../master_library/css/text_styles.css)


 In the master page, it's easy to "lock" the href value so Dreamweaver doesn't
rewrite it. I simply make it a template expression such as:


 href="@@('../../master_library/css/text_styles.css')@@"


 However, when I create a new, nested template from the master template,
Dreamweaver does what it's supposed to, evaluates the expression and writes the
path as expected. So what's the problem you say? I need the nested template to
maintain the expression so when a new .html document is created from it, it
THEN Dreamweaver evaluates the expression and writes the correct path. It's
almost like it needs to be a nested expression but I've tried every shape and
form I can think of and all I get are syntax errors.


 Anyone have any thoughts on if this is possible or a work-around I haven't
thought of?


 Secondly, I also have a template parameter in the master template. In nested
templates, it becomes an 'instanceParam' (as expected). Aside from making it a
pass-through param, is there any way to access it through template expressions?
There are some examples of child instance expressions
http://www.dreamweavermx-templates.com/tutorials/tutexprparams.cfm but thus
far, I've not been able to get these to work.
0
Comment
Question by:tmbdesign
1 Comment
 
LVL 28

Accepted Solution

by:
chilternPC earned 500 total points
Comment Utility
instead of   href="@@('../../master_library/css/text_styles.css')@@"

have it include a local file which can be resolved (and also kept with the template)   BUT... in THAT file have the reference
href="@@('../../master_library/css/text_styles.css')@@"
i,e, in my app I have manage.asp that has the following:
<!--#include file="header.asp" -->
but in the header.asp file has the another included

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now