![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to use a template parameter to control page layout. I have one css sheet for a 2-col layout and another for a 3-col layout. My template has the following code: head link rel="stylesheet" href="../css/v4.css" type="text/css" media="screen" / link rel="stylesheet" href="@@(screen_css)@@" type="text/css" media="screen" / !-- TemplateParam name="screen_css" type="text" value="../css/screen_3col.css" -- /head and a page based on my template has this code: head link rel="stylesheet" href="css/v4.css" type="text/css" media="screen" / link rel="stylesheet" href="../css/screen_3col.css" type="text/css" media="screen" / !-- InstanceParam name="screen_css" type="text" value="../css/screen_3col.css" -- /head Notice that the first href has resolved correctly, (i.e. "../css/v4.css" is replaced by "css/v4.css" since the page is located on level above the template directory), but the second href does not get resolved, so the desired layout does not get applied. Strangely, if I create a nested template off of the base template, this process seems to work correctly. Can anyone provide insight on this? Thanks, Ron |
![]() |
| Thread Tools | |
| Display Modes | |
| |