Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Forum Search
(
Advanced Search
)
This forum
This category
All forums
for
Home
:
Products
:
Gossamer Links
:
Development, Plugins and Globals
:
[ ULTRAGlobals ] Sorting in All_Links_In_Category
Previous Thread
Next Thread
Print Thread
View Threaded
Jan 23, 2011, 4:23 PM
gotze
Enthusiast
(707 posts)
Jan 23, 2011, 4:23 PM
Post #1 of 4
Views: 3873
Shortcut
[ ULTRAGlobals ] Sorting in All_Links_In_Category
Hi,
I use:
Code:
<%Plugins::ULTRAGlobals::All_Links_In_Category($ID,'50')%>
<%if all_links_in_this_cat.length%>
<%loop all_links_in_this_cat%>
<%include link.html%>
<%endloop%>
<%endif%>
Is there a way to sort the list?
Jan 24, 2011, 12:02 AM
Andy
Veteran
/ Moderator
(18436 posts)
Jan 24, 2011, 12:02 AM
Post #2 of 4
Views: 3776
Shortcut
Re: [gotze] [ ULTRAGlobals ] Sorting in All_Links_In_Category
In reply to
Hi,
Its currently set to order by Title:
Code:
my $db_obj = $DB->table('Links','CatLinks','Category');
$db_obj->select_options ("ORDER BY Title DESC LIMIT $limit");
You can change this though in the .pm file /Plugins/ULTRAGlobals.pm
Just look for:
Code:
sub All_Links_In_Category {
(around linke 2018)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Jan 24, 2011, 7:33 PM
gotze
Enthusiast
(707 posts)
Jan 24, 2011, 7:33 PM
Post #3 of 4
Views: 3753
Shortcut
Re: [Andy] [ ULTRAGlobals ] Sorting in All_Links_In_Category
In reply to
Thanks. Got it.
Challenge question: If I have a Field with enum(BBB,AAA,CCC) and wanted to list BBBs then AAAs then CCCs, how would I do that?
Jan 24, 2011, 11:55 PM
Andy
Veteran
/ Moderator
(18436 posts)
Jan 24, 2011, 11:55 PM
Post #4 of 4
Views: 3769
Shortcut
Re: [gotze] [ ULTRAGlobals ] Sorting in All_Links_In_Category
In reply to
Quote:
Challenge question: If I have a Field with enum(BBB,AAA,CCC) and wanted to list BBBs then AAAs then CCCs, how would I do that?
Mmm, not sure it could be done like that
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
|
GLinks ULTRA Package PRO
Links SQL Plugins
|
Website Design and SEO
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Previous Thread
Next Thread
Print Thread
View Threaded