Wednesday 21 May 2008 6:34:10 am
I succed to create a list of links. This list allow to user to choose the number of items per page. As this:
...
<div class="List">
{let nb_par_page=2}
<a href={concat($node.url_alias,'/(nb)/3')|ezurl()}>3</a>.....
<a href={concat($node.url_alias,'/(nb)/5')|ezurl()}>5</a>.....
<a href={concat($node.url_alias,'/(nb)/10')|ezurl()}>10</a>
{if is_set($view_parameters.nb) }
{set nb_par_page=$view_parameters.nb}
{/if}
</div>
...
{let page_limit=$nb_par_page
children=fetch('content','list',hash('parent_node_id',$node.node_id,'limit',$page_limit))
...
Now, I want do the same thing, with the object option.
I create a class Folder_film with attribute option (it's an option). And "Sorties" is an instance of this class (Folder_film).
In this instance I define three options (3, 5, and 10). I display this attribute in my templates full_folder_film :
<div class="Option">
{attribute_view_gui attribute=$node.data_map.option}
</div>
But I don't find (forum, documentation) how uses this attribute as my list .... Thanks
|