Saturday 04 October 2003 5:25:54 am
Hi, can you show us your complete template block? Your problem seems to be with the section block, which you did not post.
Either you have none or it is somehow wrong.
For accessing Items in the $trainer_list, you must contruct a section like
{section name=Trainers loop=$trainer_list} and then access the items like $Trainers:item and the attribues as $Trainers:item.age You might want to refer to this code about the section and the variable naming (from News Pagelayout, showing the news box, simplified):
{let news_list=fetch( content, tree, hash(
parent_node_id, 2,
limit, 5,
sort_by, array( published, false() ),
class_filter_type, include, class_filter_array, array( 2 )) ) }
{section name=News loop=$news_list}
<p class="readmore"><a href={concat("/content/view/full/", $News:item.node_id, "/")|ezurl}>{$News:item.name|wash}</a></p>
{/section}
{/let} Let us know, if it works. Marco PS: The role problem was probably, that you didn't close your browser window. When you change roles, I guess, they are only checked, when you log in. Even an anonymous user is "logged in" (automatically) and gets a session. Close the browser and open the page again. This should give you a new session and check your permissions/roles again.
Marco
http://www.hyperroad-design.com
|