Viewing Materfiles folder dissapeared in 1.8.2?

Materfiles folder dissapeared in 1.8.2?



User: David P. 5 years ago
I'm not sure if this is a bug, but in previous versions of Everweb, the background image of my website was stored in a folder called "masterfiles" when I preview the web.

Because some problems in firefox, I was changing some options using this code in the head page:

[code]<style type="text/css">
body{
background:url('../masterfiles/site1/images/browser/background.jpg’) no-repeat scroll center center; margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();">
}
</style>[/code]

Since I've updated to 1.8.2, now the background image isn't there. It seems to be stored in another folder... so I need to edit the code again in ALL pages...

Before to do it, I want to be sure that this will be the new location of background images FOREVER, and not a bug of this version... Or I hope it will not change again in a future release... because I don't want to edit the code everytime there's an Everweb update.

What do you recomend? Thanks!
User: Jumbo T. 5 years ago
Remove this line. It should not be in the style :

onload="onPageLoad();" onunload="onPageUnload();">
User: Jumbo T. 5 years ago
Also, there shouldn't be a quote :

margin: 0pt; "

Make it a habit not to create problems.
User: Paul-RAGESW 5 years ago
The code you are using will not work because it is incorrect CSS code.

The location of the background image WILL change in future versions of EverWeb.

If you want to have a reference to an image then just right click it in the Assets list and select 'Copy Relative Path'. Use that as the path to your image in your CSS code within EverWeb.

Last edit 5 years ago

-------------------------------
Paul
EverWeb Developer

Macworld.com ranks EverWeb as the top choice for Mac users wanting to build a website!
User: David P. 5 years ago
Thanks.

Well... I don't know why, but until now the code has been working very well. But if the location of the background image will change in future versions of EverWeb again... I think I will need to rewrite the code in all pages everytime you make a change in the location of background images.

Jumbo, tomorrow I will try to correct the code following your instructions... but I think that I tried the same some months ago because you tell me something similar, but when I tried to correct it, then didn't work as I want. So... I prefered "to not change nothing when it's working". Anyway, tomorrow I will try again…

Last edit 5 years ago
User: David P. 5 years ago
I have a copy of the folder "masterfiles" that I place again into Everweb publishing folder manually, then it's working well.

Remember that I can't use the Everweb building option to set the background image because then it's not showed correctly in Firefox as I explained in this thread, so this is the new code that I'm using to set manually the background image:

Quote:
<style type="text/css">
body{
background:url('../masterfiles/pagename/images/browser/background.jpg’) no-repeat scroll center center; margin: 0pt; ">
}
</style>


Is it ok? It's working for me.

Last edit 5 years ago
User: Jumbo T. 5 years ago
Praise the browsers that make it work, but remove the "> anyway :

0pt; ">
User: David P. 5 years ago
Better?

[code]
<style>
body {background:url('../masterfiles/pagename/images/browser/background.jpg’) no-repeat scroll center center; margin:0pt;}
</style>
[/code]

Last edit 5 years ago
User: Roddy 5 years ago
See THIS page for how to insert it with the URL suggested by Paul.

If you are using jquery on the page anyway, why not use Backstretch?

-------------------------------
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 5 years ago
Quote:
I think I will need to rewrite the code in all pages everytime you make a change in the location of background images.


Firstly you don't even need to use this code because of EverWeb can do this using the Background fill options under Inspector->Page Settings. Select image as the fill option and then select the desired effect that you want.

Secondly, you don't need to update it everytime even if you did need to use this code. I already told you want you need to do previously. Right click on the image you want to use in the Assets list and select 'Copy Relative Path'. Then replace this line;

../masterfiles/pagename/images/browser/background.jpg

With what you have in your clipboard.

-------------------------------
Paul
EverWeb Developer

Macworld.com ranks EverWeb as the top choice for Mac users wanting to build a website!
User: David P. 5 years ago
Quote: Paul-RAGESW - 10/08/2015 1:33:45

Firstly you don't even need to use this code because of EverWeb can do this using the Background fill options under Inspector->Page Settings. Select image as the fill option and then select the desired effect that you want.


Excuse me but... no, I can't. If I use the background fill option of Everweb with an image (and selecting "original size" that is what I need) the background image is perfectly showed in Everweb, Safari and Chrome, but for some reason I can't understand, it's showed displaced on firefox.

In any case, I've selected this option in Everweb because I want to see the background while I'm working with the app, but I also have to use the code in the head section to get the background replaced and showed correctly on Firefox once the site is published.

Quote:
Secondly, you don't need to update it everytime even if you did need to use this code. I already told you want you need to do previously. Right click on the image you want to use in the Assets list and select 'Copy Relative Path'.


Yes! Thank you very much! This is the best solution I think, so I will not need to edit it everytime there's a change in the Everweb files organization.

Now the code I use is:

[code]
<style type="text/css">
body {background:url('{!-ASSETSPATH-!}Images/background.jpg’) no-repeat scroll center center; margin:0pt;}
</style>
[/code]
User: Paul-RAGESW 5 years ago
Quote:
Excuse me but... no, I can't. If I use the background fill option of Everweb with an image (and selecting "original size" that is what I need) the background image is perfectly showed in Everweb, Safari and Chrome, but for some reason I can't understand, it's showed displaced on firefox.


If you find an inconsistency or a bug, please send a project file to support so we can investigate.

-------------------------------
Paul
EverWeb Developer

Macworld.com ranks EverWeb as the top choice for Mac users wanting to build a website!


Post Reply
You must login or signup to post.