Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

little incrementing Problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Cronet
Smarty Rookie


Joined: 21 May 2003
Posts: 15

PostPosted: Wed Jul 02, 2003 2:16 pm    Post subject: little incrementing Problem Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Jul 02, 2003 4:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP