Solved

Trouble with Nested Templates & Template Expressions Options

Posted on 2008-10-01
1
218 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
ID: 22620055
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Insert multiple row form with checkboxes 9 1,016
dw grid expanded layout view 8 317
Easy way to swap image out on page load 8 173
CS6 Adobe Dreamweaver Alphanumeric list 4 79
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

948 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

18 Experts available now in Live!

Get 1:1 Help Now