Solved

Trouble with Nested Templates & Template Expressions Options

Posted on 2008-10-01
1
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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