How to view only one item of Action items on theme.tpl
rob2
Joined: 2005-08-07
Posts: 40 |
![]() |
In the theme.tpl I want insert only an item of Action items; I have see the code that insert all itemes is here: ItemLinks.tpl {if !isset($links)}{assign var="links" value=$theme.itemLinks}{/if} {foreach from=$links item=link} where if I not want the class is: this is the code that insert all the items; but if I want only one, how I can to do? |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- deactivate the modules that provide this functionality, e.g. if you don't want the slideshow links, deactivate the slideshow module |
|
rob2
Joined: 2005-08-07
Posts: 40 |
![]() |
I not want deactive all the other modules; I thinked that was more simple ;-( but if this is the code that insert the items where $link.params is an array, isn't possible insert directly a value If the cicle foreach insert one for one all the values, how I can insert only thanks |
|
peter_k
Joined: 2005-09-15
Posts: 134 |
![]() |
to display only one link, use the workaround described in this post. to use this for other item links, check the moduleId of each of them (use buffered debug mode to look up the Id). |
|