|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Cronet Smarty Rookie
Joined: 21 May 2003 Posts: 15
|
Posted: Wed Jul 02, 2003 2:16 pm Post subject: little incrementing Problem |
|
|
hi!
i need to output something like this (given variable: site=6) :
Code: | <a href="gb.php?site=4">4</a>
<a href="gb.php?site=5">5</a>
<a href="gb.php?site=6">6</a>
<a href="gb.php?site=7">7</a>
<a href="gb.php?site=8">8</a> |
If you click on e.g. 8 the given variable changes to 8 and the new variables will be calculated...
Code: | <a href="gb.php?site=4">4</a>
<a href="gb.php?site=7">7</a>
<a href="gb.php?site=8">8</a>
<a href="gb.php?site=9">9</a>
<a href="gb.php?site=10">10</a> |
I don't want to use the math plugin, because the code is in a section...
Can someone help me incrementing??
Greets,
Cronet |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Jul 02, 2003 4:50 pm Post subject: |
|
|
The CVS version of Smarty has better inline support for math ops. The plugin forum has several solutions for this. For example, if you are worried about using the math plugin in a section because of performance, you can consider aloner's compiler math plugin.
Greets |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|