1
schwermie
How to reorder Web Links
  • 2004/10/20 5:38

  • schwermie

  • Just popping in

  • Posts: 1

  • Since: 2004/10/20


Hi all,

The order i see Web Links is the order they where created. I would like to see the order as alfabeticaly? How can i do that?

Regards, Marco

2
tripmon
Re: How to reorder Web Links
  • 2004/10/21 20:58

  • tripmon

  • Module Developer

  • Posts: 462

  • Since: 2004/2/28


You can edit the page you would like to see alpha ordered and change the "orderby" variable [$orderby] to reflect what you want as default.

titleA = ascending (A-Z)
titleD = descending (Z-A)

Here is an example for the category view (disregard the cid, it will vary by your category setup) which calls viewcat.php.

yourdomain.com/modules/mylinks/viewcat.php?cid=6&orderby=titleD
in viewcat.php
find the line:

$orderby = "title ASC";

change to any variation of the http var value...you can see the http vars by hovering over the sorting icons (triangles) while viewing the page in question... insert the orderby value you want in the quotes of the line above.

BTW, I didn't try, but it should work fine.

Hope that helps.

Login

Who's Online

156 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits