favorites.urls
Previous  Top  Next

A loop that iterates through all the favorites in the favorites list.

The basic syntax of the loop is:

{{loop favorites}}  
(body of loop goes here)  
{{/loop}}  

Within the favorites.urls loop, you can use these variables, whose contents change with each iteration:

·description  
A string variable containing the description of the current favorite.  
 
·target  
A string variable containing the target for the current favorite.  
 
This is used for the target parameter of the link for the favorite.  
 
·title  
A string variable containing the title of the current favorite.  
 
·url  
A string variable containing the URL of the current favorite.  



Example
The code shown below is a simplified version of the default favorites template:
 
{{loop favorites.urls}}  
 
<a href="{{url}}"  
 
{{if description}}  
title="{{var name=description escape=html}}"  
{{/if}}  
 
{{if target}}  
target="{{target}}"  
{{/if}}  
   
>  
 
{{var name=title escape=html}}</a></div>  
 
{{/loop}}