Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Secondary sort field on folder content display order
BenGreene
#1 Posted : Thursday, October 06, 2011 2:56:54 AM(UTC)
Rank: Member
Groups: Registered

Joined: 5/24/2011(UTC)
Posts: 21
Location: Melbourne, Australia
The Content display order settings on content folders are really useful, but I have a situation where it would be useful to be able to have a secondary field to sort on.

Cheers
jifeng
#2 Posted : Saturday, October 08, 2011 1:33:16 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
Hi

You can use the order then to perform the secondary sort.

Code:


var query = folder.CreateQuery().Order("Sequence").Order("Title");

Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
BenGreene
#3 Posted : Tuesday, October 18, 2011 1:17:51 AM(UTC)
Rank: Member
Groups: Registered

Joined: 5/24/2011(UTC)
Posts: 21
Location: Melbourne, Australia
jifeng,

Thanks, but I meant the default sort in content folders in the admin side. I can use those Content Query sorts, and if I want to do something more complex I can always use standard LINQ methods.

Cheers,
Ben
jifeng
#4 Posted : Tuesday, October 18, 2011 1:34:05 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
Ah, but In the admin side, we have only one setting for the sort. Do you think to add a secondary setting is necessary?
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
BenGreene
#5 Posted : Tuesday, October 18, 2011 1:56:31 AM(UTC)
Rank: Member
Groups: Registered

Joined: 5/24/2011(UTC)
Posts: 21
Location: Melbourne, Australia
jifeng,

Probably not necessary, just handy for my one situation. If you don't think it's going to be a common situation, of course, don't worry about it.

It's not even a big deal for my situation.

Thanks,
Ben
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.251 seconds.