Log in

View Full Version : Mods & Their Order


ssdevious
04-27-2012, 05:27 PM
Hello,

I was curious, which part of code is responsible for determining in which order will the installed addons appear in the options tab.

https://vborg.vbsupport.ru/attachment.php?attachmentid=138027&stc=1&d=1335551221

Firstly, I thought, if I install mods (1, 2 and 3) in the same order, they will appear so, I did that, but then they appeared as 3, 1 and 2. My point is to be able to control the order, so I can install them and have the appear in the desired order.

Any ideas?

Best Regards,
~tEh'P?r4d0x

Lynne
04-27-2012, 05:46 PM
I believe it's in the cpnav xml file that you upload for the modification.

ahmed-samara
04-27-2012, 07:12 PM
When programming the product options display number specifies Forum

ssdevious
04-27-2012, 07:59 PM
When programming the product options display number specifies Forum

I don't understand this. Could you please elaborate a little bit?

Thanks,
~tEh'P?r4d0x

--------------- Added 1335612644 at 1335612644 ---------------

To be honest, I didn't even get, what Lynne suggested, e.g. what's "CPNAV XML FILE"?

Regards,
~tEh'P?r4d0x

kh99
04-28-2012, 11:27 AM
The menus on the left side in the admincp are defined in "cpnav_" xml files (stored in the includes/xml folder). The choices in the Options menu are stored in the settinggroup table in the database, and that includes a displayorder value. As someone pointed out above, for imported products this is set in the product xml file. So I think there are 3 ways you could change it: 1) edit the product xml files and reimport the products, 2) put your site in debug mode and edit the setting group in the admincp ("[Edit]" link appears next to setting group name when in debug mode), or 3) you could go in to the database and change the display order directly.

ssdevious
04-28-2012, 12:31 PM
Hello,

I'm aiming towards editing the XML file, but I can't seem to be able to locate it in there, going line by line, I don't see it anywhere.

In what tags is the display order placed?

Thanks in advance,
~tEh'Pâr4d0x

kh99
04-28-2012, 12:38 PM
There should be an options tag with a settinggroup tag under it with a displayorder attribute, like:

<options>
<settinggroup name="test" displayorder="5555">

ssdevious
04-29-2012, 08:34 AM
There should be an options tag with a settinggroup tag under it with a displayorder attribute, like:

<options>
<settinggroup name="test" displayorder="5555">


Yep, found it.

Anyhow, higher number means closer to the bottom?

Thanks,
~tEh'P?r4d0x

Boofo
04-29-2012, 09:55 AM
Yep, found it.

Anyhow, higher number means closer to the bottom?

Thanks,
~tEh'P?r4d0x

But, if mods get updated you would be needing to do that each time. ;)

ssdevious
04-29-2012, 10:42 AM
PS. Is there a maximum allowed number? It looks like it's not accepting anything above: "65535".

Regards,
~tEh'Pâr4d0x

Boofo
04-29-2012, 10:54 AM
You have reached the max number there.