Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 - 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
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"); [/quote]" />

Re: TinyContent 1.5 Entry Order
by chapi on 2004/4/1 21:37:29

Thanks for this code snippet. I will add this in the next release!
Re: TinyContent 1.5 Entry Order
by Ruddle on 2004/4/1 18:55:40

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");
TinyContent 1.5 Entry Order
by Ruddle on 2004/3/31 20:58:45

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.

Who's Online

192 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

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

Latest GitHub Commits