Viewing Assets and Head Code

Assets and Head Code



User: Roddy 10 years ago
When will we be able to add assets and insert head code?

-------------------------------
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 10 years ago
You can already add assets. Use the Choose menu for any image fill option or drag and drop assets into the assets list.

You can add head/footer code for each individual page now (under Page Settings in Inspector)

Adding sitewide header/footer code is already enabled, just not visible yet until we get the publishing interface sorted out. Hopefully in the next beta.

-------------------------------
Paul
EverWeb Developer
User: Roddy 10 years ago
Sorry, I should have said "External Files".

Now I see where to add the code. I didn't scroll down far enough to see it!

I added a link to a custom font but it doesn't appear in EasyWeb. It does work OK in the published version.

Again, this may be due to the lousy internet connection I'm working with?

I'll try adding more code tomorrow night when I have a better connection.

-------------------------------
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 10 years ago
What exactly do you want to add to EasyWeb in terms of External Files? You should already be able to add external files for linking purposes.

What code are you entering in the head section for custom fonts? Anything you put in those fields will only work on publishing. If you show me exactly what you want to do, maybe I can see if we can get it working or if there is another way to do it.

-------------------------------
Paul
EverWeb Developer
User: Roddy 10 years ago
I inserted a link to a font hosted with Goole...



... and then added the styles inline in the HTML Widget since I was too stupid to see the box for entering the in the head.

Normally, I host these fonts myself and would either reference them from my own server using an absolute URL or from a "font" folder using a relative one.

-------------------------------
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 10 years ago
I can drag files into the assets folder, or any other folder I wish to place alongside the published files, and use relative URLs in EasyWeb. Doing this will obviously not allow me to preview the result in EasyWeb.

Once publishing is moved to the Rage server I won't be able to do this - will I?

In the "Assets" window there's a heading "EXTERNAL FILES" which I assumed would be where I could drag and drop files such as media, CSS, java script, slideshow images and thumbs and so on. I further assumed that I would then be able to reference these in the head or body using a relative URL and get a preview of whatever feature I was trying to create in the EasyWeb window.

-------------------------------
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 10 years ago
The External Files right now are used to link to files (Inspector->Hyperlinks). Right now they are only exported if they are actually used in a hyperlink.

The are always exported to a root directory called ewExternalFiles.

So if you wanted to do what you have described in the version you have (beta 3) you would do the following;

1) Add the external file to assets (if you get a Bug Report window you may have to try and add the External File again, this Bug Report window error is fixed in beta 4).

2) Add the file as a hyperlink to a shape or text so it is exported with the website. If you continue getting the bug report in step 1 you can add the external file by selecting Choose under the Hyperlink tab in the Inspector when linking to a file.

3) You can add a reference to the external file in either the head code or footer code by doing something like this;



This will actually not work well when exporting to a folder because the first / will mean that it should go to the root. It will actually WORK BETTER when publishing to the RAGE Server because the file will be properly referenced by the relative path.

BETA 4
A few changes should be made to make this more powerful.

1) All external files should be exported when publishing the website (I'll see if we can implement this for Beta 4)

2) If you go the publish settings you will see that you have specify a site name when publishing to the rage servers. This lets you have multiple websites under one domain, but would break the relative path step 3. In beta 4 you will be able to specify the relative path as;




Which will make sure that if you enter a site name, or leave it blank, the file will be references properly.


This should be considered an advanced feature, but try it out and let me know if you are able to get this working.

-------------------------------
Paul
EverWeb Developer
User: Roddy 10 years ago
I suppose I should wait for beta-4 to try this but, from what you are saying, this will only work when publishing to the Rage server which I can't do anyway.

I think my main concerns here are:
(a) How to add external files to the right sidebar under Assets/External files
(b) Being able to preview the result in EasyWeb. You can see the problem in this topic...

http://ragesw.net/easyweb-beta/viewtopic.php?f=6...t=150

-------------------------------
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 10 years ago
Hi Roddy,

No you can do this with any publishing option, you just need to make sure your relative paths are correct.

I will see what we can do about getting header code to apply to html widgets properly. It is trick because of the relative path issues.

-------------------------------
Paul
EverWeb Developer
User: Paul-RAGESW 10 years ago
Roddy,

Check out the new feature in beta 8;

- EXPERIMENTAL ADVANCED FEATURE: you can now use any assets in the HTML Widget and they will be exported properly. Right click on any asset and select "Copy Relative Path". Use that path to
reference them in the HTML Widget. For example, displaying an image would look like this;
hello

This should work for the head sections also. It should be considered experimental but may be what you need to do some more advanced things without having to publish anything to the server first.

-------------------------------
Paul
EverWeb Developer
User: Roddy 10 years ago
See this topic...

http://ragesw.net/easyweb-beta/viewtopic.php?f=6...t=281

-------------------------------
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.