We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Anyone familiar with the LinkList Module - What am I doing wrong?

Development and Programming

Deron Sizemore's avatar
Deron Sizemore
1,033 posts
17 years ago
Deron Sizemore's avatar Deron Sizemore

I’ve created a list of links: http://test.ksba.org/links

Here is my code for these linklists:

{exp:linklist:entries linklist="partner-links|kentucky|region|education-data|other-education|nsba" orderby="linklist_title" status="open" dynamic="off"}
{list_heading}<h2>{linklist_title}</h2>{/list_heading}
<ul class="mainList">
<li><a href="http://{linklist:url}">{linklist:url_title}</a></li>
</ul>
{/exp:linklist:entries}

It works as is right now, but I’d like to sort everything by url_title if possible and keep the groupings correct just as you see it now. Each URL is correctly grouped under the linklist_title but they are not in alphabetical order. When I user orderby=”url_title”, it orders them by title, but it does not keep the grouping correct. So essentially it takes every url_title from each link list and alphabetizes them, messing up the groupings and the linklist_titles.

Any ideas?

       
Yoshi's avatar
Yoshi
39 posts
16 years ago
Yoshi's avatar Yoshi

it doesn’t order them in that way. unfortunately linklist doesn’t know that you’re grouping them together in separate groups, and thusly doesn’t sort them that way, but instead sorts them out in one long list. since the query just gets them all in one query that is.

to get that result you’re desiring, you’d have to make multiple linklist entries statements unfortunately. :/

       
Deron Sizemore's avatar
Deron Sizemore
1,033 posts
16 years ago
Deron Sizemore's avatar Deron Sizemore

Thank you very much Yoshi!

       
Yoshi's avatar
Yoshi
39 posts
16 years ago
Yoshi's avatar Yoshi

yeah it’s not really a solution but a workaround for that. making orderby more versatile would be nice. I guess since EE 2.0 is delayed I should release a new version of linklist.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.