qubeshub / hubzero-cms

HubZero CMS code base for QUBESHub.
https://qubeshub.org
GNU General Public License v2.0
0 stars 1 forks source link

[Question] Ordering of xhub:includes "scripts" on pages #145

Closed trisketz closed 6 years ago

trisketz commented 6 years ago

I have a question. I was attempting to do some animations using GreenSock animation library (which Ilya was kind enough to include in our template) and I noticed that when I included the js file (by adding {xhub:include type="script" filename="pages/homepage.js"} in the article manager for the homepage), it always sticks it before the animation library. Is there a way to change this so that it goes after? I believe this is why I can't get it to work.

screen shot 2018-04-18 at 1 24 08 pm
mdlama commented 6 years ago

Hi, Jenny. This is probably a better question for the HubZero team. I would wager that they add these scripts before the site-wide included scripts so you don't accidentally override some JS. I'm not a javascript ninja, though, so do you mind submitting a support ticket?

trisketz commented 6 years ago

Will do. Ticket #1118