1
yellowchimp
icontent shortcuts menu

Hi

Does anyone know how to prevent the links appearing in the shortcuts block automatically listing themselves in alphabetical order?
In other words how to control the sequence yourself.

Cheers

2
yellowchimp
Re: icontent shortcuts menu

I have eventually figured this out. So I will tell you here in case you'd like to know.

You need to go into the database and go to the table xoops_icontent_shortcuts. Click on browse to see all your shortcuts. You will notice a column called submenu and that every shortcut has been given the number '1'.
Click on the edit thing (little pen thing to the right of each shortcut). Give each shortcut a new submenu number - 1 being the link you want to appear at the top of your menu, 2 second and so on). (click on 'go' each time to save the new submenu number).

Then in a html editor (i used homesite) open up the file b_icontent_shortcuts.php (from within the blocks folder of icontent).

Near the top of the page there is a line of code that says this:

$result = $xoopsDB->query("SELECT `name`, `page` FROM `".$xoopsDB->prefix()."_icontent_shortcuts` ORDER BY `name`");

All you have to do now is change the word 'name' AT THE END OF THE CODE LINE for 'submenu'.

save it and ftp it across to replace the old one.

Hope thathelps somebody - I've wasted a lot of hours trying to figure that out.




Login

Who's Online

361 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 361


more...

Donat-O-Meter

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

Latest GitHub Commits