1
Ruddle
TinyContent 1.5 Entry Order
  • 2004/3/31 20:58

  • Ruddle

  • Just popping in

  • Posts: 61

  • Since: 2003/11/10


How do I change the order the links in the TinyContent submenu? I have tried reorder the "Link ID" but it does not affect the order in the menu.

2
Ruddle
Re: TinyContent 1.5 Entry Order
  • 2004/4/1 18:55

  • Ruddle

  • Just popping in

  • Posts: 61

  • Since: 2003/11/10


Found the answer... should anyone else need it!

Tiny Content: Fixed Menu Sort
In order to get the main menu order to reflect the changes to the sort that you made on the admin screen (i.e. so that you can sort them in a different way than the order that you entered them), you just need to change 1 line.

In the /tinycontent/xoops_version.php file you need to change line 64 from:

$result = $xoopsDB->query("SELECT storyid, title, homepage, submenu FROM ".$xoopsDB->prefix("tinycontent")." WHERE homepage='0' AND submenu='1'");

to:

$result = $xoopsDB->query("SELECT storyid, title, blockid, homepage, submenu FROM ".$xoopsDB->prefix("tinycontent")." WHERE homepage='0' AND submenu='1' ORDER BY blockid");

3
chapi
Re: TinyContent 1.5 Entry Order
  • 2004/4/1 21:37

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Thanks for this code snippet. I will add this in the next release!

Login

Who's Online

268 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 268


more...

Donat-O-Meter

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

Latest GitHub Commits