Forums / Setup & design / How to sort by author with 3.3-5

How to sort by author with 3.3-5

Author Message

Ralf Lohmann

Monday 10 May 2004 4:26:19 am

I need some help, please.
We?ve updated ezpublish from 3.3-3 to 3.3-5 cause we wan?t to sort by author. Is there anybody, who knows how to do this? We know how to sort by an attribute filter with the following code. Here we sort by a textstring (frabo/username -class/attribute-).

{let user=fetch( 'user', 'current_user' )}
{section loop=fetch( 'content', 'list', hash( parent_node_id, 47 , attribute_filter, array( array( 'frabo/username', '=', $user.contentobject.name ) ) ) ) }
<a href={$:item.url_alias|ezurl} class="gruenb">{$:item.name}{node_view_gui view=line $Child:item} </a>
{/section}
{/let}

iddis GmbH
Gesellschaft für geteiltes Wissen
Society for shared knowledge
Falkstr. 73-77
47058 Duisburg
Germany