load order for elements in contentArea?

General Chat, Comments
Post Reply
User avatar
cbsarge
Posts: 195
Joined: Mon Sep 14, 2015 3:20 pm

load order for elements in contentArea?

Post by cbsarge »

Not sure if anyone is still watching this forum but, thought I would ask anyways. I've started a bit of a revamp of the way my game looks and part of that has caused some annoying CSS issues. One of them would probably be a lot easier to deal with if I could control the load order of the elements in the main contenArea div. Can anyone help me out with where that is defined?

Thanks! :D
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: load order for elements in contentArea?

Post by hallsofvallhalla »

Hmm can't remember. it is not top to bottom?
User avatar
cbsarge
Posts: 195
Joined: Mon Sep 14, 2015 3:20 pm

Re: load order for elements in contentArea?

Post by cbsarge »

Well, it loads all of the modules that have home page elements but, I was wondering if there is a way to control what order they load in.
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: load order for elements in contentArea?

Post by KaL »

Yes! It control through the database
User avatar
cbsarge
Posts: 195
Joined: Mon Sep 14, 2015 3:20 pm

Re: load order for elements in contentArea?

Post by cbsarge »

KaL wrote:Yes! It control through the database
Thanks Kal. Can you expand on that a little bit?
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: load order for elements in contentArea?

Post by KyleMassacre »

I want to say it is one of a few things, I just don’t remember which one exactly
  1. Like Kal said, it’s loaded by order in the database which means in the order the module was installed
  2. Alphabetically
In any case you can look to see where the hook is created like in lib.php and use something like u*sort kind of like how the main menu is sorted by the sort order parameter in the constructor by creating a file or even using the xml file and adding a sort order there
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: load order for elements in contentArea?

Post by KaL »

My bad. It was the stats that you can sort by order on the database. For the menu itself you have to script it. The best way to get an example is to look at illusion “TOWN Modules” he list all the script on how to loop the content menu or grab it one by one.
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: load order for elements in contentArea?

Post by KaL »

Here is the town module script.
I can upload the script because it was set as a free module by illusion.
mystik1
Posts: 1
Joined: Tue Jan 13, 2015 11:08 pm

Re: load order for elements in contentArea?

Post by mystik1 »

Small world! Imagine seeing you here, cbsarge! :)
Post Reply

Return to “General”