• Resolved Fred Atkinson

    (@fatkinson)


    This Link Library plugin is showing more promise all the time.
    The more I do with it, I see that it can do even more.

    Is there any way I can sort the order in which the links appear in a table?

    Example: The table displays a Title and a URL for each link.

    I want to create a code by which to sort.

    So, the table would display the links in order by this third element (sortcode, slug, or whatever you might want to call it). The third element should only be used for sorting. It should not be displayed in the table.

    Sample Elements:

    “callsign”;”sortcode”;”url”;

    “W0ABR”;”0ABRW#”;”www.w0abr.com”;
    “OE3EJB”;”3EJBOE”;”www.oe3ejb.at”;
    “K9JY”;”9JY#K#”;”www.k9jy.com”;

    The links would appear in the table in alphanumeric order sorted by the ‘sortcode’ element [three link examples shown above] when the user displays the page the link library appears on.

    If there is a way to do this, this would help me make great progress.

    I have an database with several hundred of these links. I only show three of them to demonstrate the structure of each record (individual link elements).

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    I’ll investigate this week-end. Link Library does have a way to add custom text fields to links. I can likely add support to be able to sort based on that custom field.

    Thread Starter Fred Atkinson

    (@fatkinson)

    That would be great, Yannick.

    I was worrying about how I could recreate this database on WordPress. I had a table of these links displaying on my hard coded pages.

    But your plugin seems to solving most of my issues.

    This would be a big step forward.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hi Fred, I have added support to be able to sort based on a custom text field in version 6.8.5 of Link Library.

    To use this feature, you would need to:

    – Go to Global Options, under Custom Fields, and activate the first Text Field by checking the box, then giving the field a Label.
    – Edit your links to fill in the newly created field
    – Go to the Links section of your Library configuration and set the Links Results Order to order by Custom Text Field #1.

    Let me know if this works as expected for your site.

    Thread Starter Fred Atkinson

    (@fatkinson)

    Yannick,

    I put some more records (links) into that library to check out the sorting.

    It seems to be hitting on all cylinders. Good job!

    This is off topic [and just a suggestion].

    I would suggestion adding an ‘Unassigned Links’ option under the ‘All Link Categories’ dropdown menu.

    This would allow an administrator to quickly locate links that haven’t been assigned to a category.

    Regards, Fred

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Hi Fred, I added a new tool under the Link Checking Tools section of Link Library to allow you to check for any links that are not assigned a category in version 6.8.6.

    Thread Starter Fred Atkinson

    (@fatkinson)

    Cool,

    Can’t check it out now.

    I have been doing so much work on that database that I exceeded my bandwidth limit. Not sure when that comes off.

    Will check it out when Imget back on the site.

    Regards,

    Fred

    Thread Starter Fred Atkinson

    (@fatkinson)

    Yannick,

    I see you have an update available.

    Am I going to have to insert that code after I update it so it keeps that sort requirement.

    Regards,

    Fred

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sort by Slug’ is closed to new replies.