Skip to main content
Participating Frequently
January 4, 2017
Answered

Define htmlroot directory for library assets

  • January 4, 2017
  • 2 replies
  • 305 views

I'm hosting my animation on a drupal site.  Therefor the path for images in not images/ but  /sites/all/themes/mytheme/somefolder/images/

Is there anyway to append this path to assets within the html head script or is the only way to set this in the export folder settings?  

This topic has been closed for replies.
Correct answer ClayUUID

All the asset path references are relative to the HTML document. So if you upload your animation to "/site/all/thetans/meercats/spanakopita.html", it would look for its images in "/site/all/thetans/meercats/images/". If that doesn't work you can set up whatever relative path you need for your asset folder structure in your publish settings. Or, worst case, hack a base href into the HTML.

2 replies

ClayUUIDCorrect answer
Legend
January 4, 2017

All the asset path references are relative to the HTML document. So if you upload your animation to "/site/all/thetans/meercats/spanakopita.html", it would look for its images in "/site/all/thetans/meercats/images/". If that doesn't work you can set up whatever relative path you need for your asset folder structure in your publish settings. Or, worst case, hack a base href into the HTML.

Participating Frequently
January 4, 2017

Just more info. This is in regards to any asset loaded in main .js file generated in an HTML canvas project. 

In adobe edge animate you could do this by adding this to the load.composition function:

htmlRoot: "/sites/all/themes/mytheme/homepageanimation/",