English 中文(简体)
Smarty Section Making the selected Link Bold
原标题:

How can I make the selected link from the List below, bold, that you see you are on Page ex. 3 or 5

With this code, If you click on a Link you don t know on which page you are.

The smarty code looks like this;

{section name="sitelinks" start=0 loop=$total->sitelinks}
 <span class= tag >
<a href= /member/{$campaign->id}?start={$smarty.section.sitelinks.index*$limit}&limit={$limit}&sort={$sort}&sortDir={$sortDir} >
{$smarty.section.sitelinks.index}
</a>
 </span>
 {/section}
最佳回答

Hmm.. no one answered this question. I realized that there was a var $start. I did

{if $start/$limit == 0}<b>{$smarty.section.sitelinks.index}</b>
{else}{$smarty.section.sitelinks.index}{/if}

And it worked.

问题回答

暂无回答




相关问题
adding an index to sql server

I have a query that gets run often. its a dynmaic sql query because the sort by changes. SELECT userID, ROW_NUMBER(OVER created) as rownumber from users where divisionID = @divisionID and ...

Linq to SQL nvarchar problem

I have discovered a huge performance problem in Linq to SQL. When selecting from a table using strings, the parameters passed to sql server are always nvarchar, even when the sql table is a varchar. ...

TableView oval button for Index/counts

Can someone help me create an index/count button for a UITableView, like this one? iTunes http://img.skitch.com/20091107-nwyci84114dxg76wshqwgtauwn.preview.jpg Is there an Apple example, or other ...

Move or copy an entity to another kind

Is there a way to move an entity to another kind in appengine. Say you have a kind defines, and you want to keep a record of deleted entities of that kind. But you want to separate the storage of ...

热门标签