Link to home
Start Free TrialLog in
Avatar of tmbdesign
tmbdesign

asked on

Trouble with Nested Templates & Template Expressions Options

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.
ASKER CERTIFIED SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial