[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

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.
0
tmbdesign
Asked:
tmbdesign
1 Solution
 
chilternPCCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now