Adobe Dreamweaver Forums



Last 10 THreads :         Content-Length of mp3 not receving form content server (Last Post : BVCtech20090101 - Replies : 0 - Views : 1 )           »          .htaccess & .html URL endings (Last Post : theboyfromthefens - Replies : 1 - Views : 2 )           »          Re: 2.1 GB TIF size limit (Last Post : Bart_Kelsey@adobeforums.com - Replies : 0 - Views : 1 )           »          Strip EXIF camera data from PSD files? (Last Post : Ho - Replies : 3 - Views : 8 )           »          delete all channels previously created by "save selection" (Last Post : Paul_R@adobeforums.com - Replies : 4 - Views : 5 )           »          flash drawing (Last Post : ponarangan - Replies : 0 - Views : 1 )           »          Flash IDE randomly creating Symbols (Last Post : OLTLfan - Replies : 2 - Views : 4 )           »          Can I make a 4 state CSS Sprite nav bar. (Last Post : Dooza - Replies : 9 - Views : 10 )           »          JavaScript to enable submit button (Last Post : Dooza - Replies : 8 - Views : 9 )           »          Webhelp Instead of HTML Help for Desktop Applications? (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »         


Mission Statement
DreamWeaverForum.infois an online Community of web developers joining together to better their field, share problems and solutions as well as promoting their cause.
We strive to bring you the best information, tools, downloads and news to support your work and companys efforts working in web development.
With our favorite tool "Dreamweaver" and the tools and information we bring you, You should be in a great postion to better your skills and show the world your work.
Come back often, Stay late we have many new things coming your way. Wish you all the best in 2009 information..



 



User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Robohelp
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 03:04 PM
Larry4557
 
Posts: n/a
Diggs:
Default Conditional Tag Stylesheet Reference?

I have a branded version of help and a generic version of help.

I originally set this up using two different templates, each with their own
separate stylesheet.

But this is extra work when I output layouts. I have to switch all topics from
one template to another. (Ideally you should be able to select a template in
the layout options, no?)

I'd like to use one template and use conditional tags to show the appropriate
stylesheet. Is this possible?

Or is there some other way to accomplish the same thing?

Thanks for your help.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2008, 03:14 PM
Peter Grainge
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

Depending on your version of RH and quite how the branding is implemented, sounds like Variables could help. In one version a value could be GenericName and in another BrandX.


Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 03:44 PM
Larry4557
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

I'm using RH 7.

I'm using variables and tags. That works great.

What I'm trying to do is generate 2 layouts from the same topics that use different stylesheets, w/o having to switch templates.
Reply With Quote


  #4 (permalink)  
Old 11-20-2008, 04:03 PM
Peter Grainge
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

Is the change just the CSS stylesheet or does the template have to change as well?


Reply With Quote
  #5 (permalink)  
Old 11-20-2008, 04:14 PM
Larry4557
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

I'd just like to change the reference to another stylesheet, for example from
styleBrand.css to styleGeneric.css.

I'm only using the template so I can have separate stylesheets. (I'm using
tags to show different content in the headers and footers.)

Thanks again.

Reply With Quote
  #6 (permalink)  
Old 11-20-2008, 05:14 PM
Peter Grainge
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

So assuming all topics have one CSS, in the topic list select all the topics and right click. In Properties select the other style sheet and generate. Then revert back.


Reply With Quote


  #7 (permalink)  
Old 11-20-2008, 05:26 PM
Larry4557
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

That is what I'm doing now.

I'm asking if there is a way to do it programatically/automatically so I can batch generate both layouts without manually having to swap out templates or stylesheets.
Reply With Quote
  #8 (permalink)  
Old 11-20-2008, 05:34 PM
Colum McAndrew
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

I'm afraid not without manually assigning the template.
Reply With Quote
  #9 (permalink)  
Old 11-20-2008, 05:34 PM
Peter Grainge
 
Posts: n/a
Diggs:
Default Re: Conditional Tag Stylesheet Reference?

"What I'm trying to do is generate 2 layouts from the same topics that use
different stylesheets, w/o having to switch templates."

What I suggested does allow you to switch CSS without switching template.
Sorry misunderstood you.



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
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:36 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk