Sorting entries by user name

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Sorting entries by user name

Postby Neileagle » Thu Feb 23, 2006 6:44 pm

I've tried to search as I feel this must have been asked and answered before, but no luck. Is there a way to group entries by user name for a single category?

e.g.

Posted by jim

12/2/06 Entry 8
2/2/06 Entry 3
31/1/06 Entry 1

Posted by neil

9/2/06 Entry 6
1/2/06 Entry 2

Posted by marc

11/2/06 Entry 7
7/2/06 Entry 5
6/2/06 Entry 4

I realise I can do this by creating three separate news categories and only allowing the the relevant user to post in their own category, but that is not very elegant. I was wondering if there was a clever piece of coding that would enable the news style to do the sorting.

I'm sure, in the distant past, I saw a Coranto based site that grouped all news entries by date, which is what makes me think it might be possible.

Advance thanks for all help given. Please transfer to the correct forum if I have picked the wrong one.
Neileagle
 
Posts: 26
Joined: Wed Jan 10, 2007 9:33 pm
Location: UK

Postby Parahead » Thu Feb 23, 2006 8:06 pm

The Sort Orders addon allows you to sort on different fields, among them the User field. Together with the isNewValue addon you could achive this layout... Something like this in the style:
Code: Select all
<If: Sub: isNewValue: User>
  Posted by <Field: User>
</If>

Also, this page might be interesting reading for you?
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby Neileagle » Thu Feb 23, 2006 10:21 pm

Thank you, Parahead.

I'm off to have a little play around with those addons, as suggested.

Will report back soon.
Neileagle
 
Posts: 26
Joined: Wed Jan 10, 2007 9:33 pm
Location: UK

Postby Neileagle » Fri Feb 24, 2006 12:13 am

Neileagle
 
Posts: 26
Joined: Wed Jan 10, 2007 9:33 pm
Location: UK


Return to Customization

Who is online

Users browsing this forum: No registered users and 5 guests

cron