Page 1 of 1

HTML link issue

Posted: Tue Jan 26, 2016 4:37 pm
by me.prosenjeet
I am working on a script extension, the structure is as under:
index.html
-----base_folder
-----------css
---------------style.css
Now in 'base_folder' I need to upload a logo which is mentioned in style.css as '../logo.pmg'(in extension written as $logo$)

In the extension builder when I choose "base_folder" as the upload folder, and I publish, the link that is replaced for $logo$ is './base_folder/logo.png'

and when I preview the index.html, the logo doesn't show.

I want it to set in a way that the logo uploaded by the user uploads inside "base_folder" and a correct link replaces $logo$ in the style.css file so that the logo displays correctly in the index,html
Any help welcome please

Re: HTML link issue

Posted: Tue Jan 26, 2016 6:26 pm
by Pablo
I'm sorry I'm currently too busy to help you with building extensions.

Re: HTML link issue

Posted: Tue Jan 26, 2016 10:29 pm
by me.prosenjeet
I can understand Pablo, with the launch of wb11

Others, Im sure some of you are masters in ext development- bacon, rz, naval, jordan- to name a few

Re: HTML link issue

Posted: Tue Jan 26, 2016 11:14 pm
by [RZ]
extb / properties / edit property ->
type: file
publish to folder: base_folder/css

extb / files ->
new folder: base_folder
(click on base_folder to remain it selected)
new folder: css
(click on css to remain it selected)
add files: logo.png

the ext should point then to base_folder/css/$logo$

Re: HTML link issue

Posted: Wed Jan 27, 2016 10:04 am
by me.prosenjeet
Thanks RZ, will implement and let you know :D

Re: HTML link issue

Posted: Wed Jan 27, 2016 6:19 pm
by me.prosenjeet
Rz

I could sort it, not your way but its working now. Thanks for the help