Viewing Relative Path to Assets
Relative Path to Assets
|
User: Roddy 12 years ago
|
|
|
If I add a script to the Assets, control click it, select relative path and then paste it into the link reference to the file in the head code box it doesn't work for two reasons when publishing to a local folder. First, the file does not appear in the ewExternalFiles folder and, second, the path to the file in the HTML doc appears as the absolute path to the file in Application Support/EasyWeb/Site Name/ <link href="file://localhost/Users/roddymckay/Library/Application%20Support/EasyWeb/835C2AD7E6C346A5A2CE2EF85C155C38.easyweb/Assets/External%20Files/mobi-nav.css" rel="stylesheet" type="text/css"> To get this to work I need to, first, manually add the file to the ewExternalFiles folder in the published files and then add the actual path like this... <link href="ewExternalFiles/mobi-nav.css" rel="stylesheet" type="text/css"> <style> ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: Roddy 12 years ago
|
|
|
Wot! - no answer to this?
------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: Paul-RAGESW 12 years ago
|
|
|
Sorry, will to look into it.
------------------------------- Paul EverWeb Developer |
|
|
User: Roddy 12 years ago
|
|
|
Did you look into this? What did you see? Anything? ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: Paul-RAGESW 12 years ago
|
|
|
I tested this and it works fine for me. Can you send me a sample site that does this? Maybe there is something different that you are doing. I put this into my HTML Snippet and it worked fine; <img src="{!-ASSETSPATH-!}Images/pngsavetest.png"> ------------------------------- Paul EverWeb Developer |
|
|
User: Paul-RAGESW 12 years ago
|
|
|
Wait, I think you were putting it in the Head Code section and getting this issue. If so, it has been fixed for the next beta.
------------------------------- Paul EverWeb Developer |
|
|
User: Roddy 12 years ago
|
|
|
Correct - it's the files in the head code that have the absolute path to file in Application Support/EasyWeb.
------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
| Post Reply |
| You must login or signup to post. |
