We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9889
    • 7 Posts
    I am trying to fully understand the new Media Sources feature of Revo 2.2 - for example:

    1, I have a pre-created template folder with various hmtl, css, js, image, etc files (a Themeforest HTML template for example) - all non-html files are relatively linked from the main html files inside this template folder ...

    2, I upload the template folder above to my MODX Revo 2.2 install to a new directory named "tmp"

    3, I create a new Media Source called "tmp" and set both basePath and baseUrl to "tmp/"

    4, I create a new static template from the index.html file of the above template folder and set Media Source to "tmp"

    With the above setup should the Media Source setting automatically set all links inside the index.html above to an absolute path ... so that if the root URL is "mysite.com", a link such as "css/main.css" inside index.html be converted to "mysite.com/tmp/css/main.css" at runtime??

    If so, could someone please explain exact settings for this to happen as I am unable to figure them out at the moment ...

    Thanks! (: [ed. note: flymonk last edited this post 14 years, 6 months ago.]