variable values from configs (huh?)
| From: | tomas at altern dot org | Date: | Fri, 27 Apr 2001 13:49:00 +0000 |
| Subject: | variable values from configs (huh?) | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-616@lists.php.net to get a copy of this message | ||
Hello Smarties!
I'm producing a six-page webpresentation. The main content of 'every' page is in a
separate tpl-file.
The procedure is to include:
- head.tpl
- $sida.tpl
- tail.tpl
where $sida is the name of the page to be produced (one of information, role, vision, ...).
My problem is this:
The last thing in the head.tpl-file is the starting of a <DIV> and the first thing in the
tail.tpl-file is the ending of that </DIV>
I would like to position this <DIV> on different places, dependig on the value of $sida.
I thought i could do a little something like this:
---main.conf---
information = 100
role= 120
vision= 150
/--main.conf---
---head.tpl---
...
<DIV class="inneh" style="top:{#$sida#}px">
/--head.tpl---
And this would result in:
<DIV class="inneh" style="top:120px"> if $sida="role"
This is of course not the case, in which case I wouldn't be writing this (I now see) long and
confusing letter.
Ok, enough is enough...
a&l, tomas