HighDots Forums  

Template for with no server-side help...

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Template for with no server-side help... in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mr. Michael
 
Posts: n/a

Default Template for with no server-side help... - 07-12-2004 , 07:05 PM






Greetings,

I'm in the process of designing my first static HTML/JavaScript site in about
7 years. I've been using ASP for about 8 years and now ASP.NET for
development. But, I have a freelance job and they want to use Dreamweaver.
So, what I want to do seems simple to me, but it's not working as it seems it
should. Please help...

The concept is a simple If --> Else block using a boolean. Here's my current
code.

The definition:
<!-- TemplateParam name="Show Left Nav" type="boolean" value="true" -->

The code:
<!-- TemplateBeginIf cond="_document['Show Left Nav']" -->
<script language="javascript">LeftNav(sFileTrunk, sFileSec,
sFileTer)</script>
<!-- I want to say Else, do this here. How do I do it? -->

<!-- TemplateEndIf -->


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Template for with no server-side help... - 07-12-2004 , 08:05 PM






<!-- TemplateBeginIf cond="!_document['Show Left Nav']" -->
whatever you want in your 'else' statements.

You could also do it this way -

@@(If Show Left Nav=="true"? <script
language="javascript">LeftNav(sFileTrunk, sFileSec,
sFileTer)</script>:whatever you want the else statement to be)@@



--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Mr. Michael" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Greetings,

I'm in the process of designing my first static HTML/JavaScript site in
about
7 years. I've been using ASP for about 8 years and now ASP.NET for
development. But, I have a freelance job and they want to use
Dreamweaver.
So, what I want to do seems simple to me, but it's not working as it seems
it
should. Please help...

The concept is a simple If --> Else block using a boolean. Here's my
current
code.

The definition:
!-- TemplateParam name="Show Left Nav" type="boolean" value="true" --

The code:
!-- TemplateBeginIf cond="_document['Show Left Nav']" --
script language="javascript">LeftNav(sFileTrunk, sFileSec,
sFileTer)</script
!-- I want to say Else, do this here. How do I do it? --

!-- TemplateEndIf --




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.