Blog
Developers
Careers
Support
Contact
Gossamer Threads
Solutions
Results
About
Mailing Lists
Resource Centre
Forum
Tools
Home
Who's Online
Tags
Favourites
Login
Register
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
(705 posts)
Jan 23, 2011, 4:23 PM
Post #1 of 4
Views: 508
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
(17366 posts)
Jan 24, 2011, 12:02 AM
Post #2 of 4
Views: 492
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
(plugins total "value" $3,325 & rising, for just $350)|
GLinks ULTRA Package PRO
(plugins total "value" $5,625 & rising, for just $500)
Support Forum
|
Links SQL Plugins
|
DMOZ Dumps
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Compare our different Plugin packages
*new*
Free CSS Templates
Jan 24, 2011, 7:33 PM
gotze
Enthusiast
(705 posts)
Jan 24, 2011, 7:33 PM
Post #3 of 4
Views: 478
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
(17366 posts)
Jan 24, 2011, 11:55 PM
Post #4 of 4
Views: 471
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my
Amazon Wish List
GLinks ULTRA Package
(plugins total "value" $3,325 & rising, for just $350)|
GLinks ULTRA Package PRO
(plugins total "value" $5,625 & rising, for just $500)
Support Forum
|
Links SQL Plugins
|
DMOZ Dumps
|
UltraNerds
|
ULTRAGLobals Plugin
|
Pre-Made Template Sets
|
FREE GLinks Plugins!
Compare our different Plugin packages
*new*
Free CSS Templates
Previous Thread
Next Thread
Print Thread
View Threaded