Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Mechanic
Posted
I have a problem. I need to create an intranet site, hence I am using absolute links to files on a local server.

If I make the link to a mapping drive, i.e. H:\... it works fine. However, I need a link to the server's IP adres (or to it's common name). Still no problem here, as SS can make it into:
file:////Server01/data/Intranet/Banners/Logo.png
or
file:////192.168.1.2/data/Intranet/Banners/Logo.png

Now comes the problem; this works fine in IE, but not in Firefox. Apparently Firefox needs 5 forward slashes to work. I can change the path, but not the number of slashes that SS adds without doing this by hand in the code.

Is there any solution to have the site workin in FF also ? I have tried searching add-on's for FF but without succes. I was hoping some of you may have come across this issue before....

Rgds
Cross
 
Posts: 4 | Registered: August 18, 2009Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
If you are using a local server and are using a local IP address or mapped host name, why would you need to use a file:// type URL? The browser should be able to resolve the file content on its own.
 
Posts: 5152 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
I do not specifically need the file:// type URL, this is automatically put in the code by SS.

While building the webpage I am inserting pictures etc. which are located on one of our local servers. Obviously those pictures should be visible for all users of the site and therefore the path should have the server's IP, rather than a mapping like H:, which letter changes per user.

I do not have any control on how SiteSpinner puts this in the code, but apparently this is done with file:////, which is disliked by FF.

So I am not clear on what you mean with that the browser should resolve it. Pls. forgive my ignorance on this, I am self educating..
 
Posts: 4 | Registered: August 18, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
I think what Larry means by why would you use a file:// type URL, is that when you create a link with SS, you have the choice of (among others) “page”, http://, and “file”.

I think that you are being misled because you are inserting an image, you are using the “file” option, then creating the link to your server.

The “file” option is there to create a link to a file within your project.

To create a link to a file outside your project, use the http:// option.

On the other hand, if you are trying to insert an image into your page that resides on your server, instead of using either the Mona Lisa icon or the Embed File or Media, place a specific href anchor into a code object, then place the code object on your page where you want the image to appear (top left corner).
 
Posts: 1167 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
quote:

On the other hand, if you are trying to insert an image into your page that resides on your server, instead of using either the Mona Lisa icon or the Embed File or Media, place a specific href anchor into a code object, then place the code object on your page where you want the image to appear (top left corner).


I think this is what I need, but this is going beyond my (limited) knowledge of html. How can I achieve this using SiteSpinner? Obviously it will be a step back if I have to change the code manually after publishing.

May I assume the 'add base' option has to do with it, but the instructions on how to use this function are not so clear to me.
 
Posts: 4 | Registered: August 18, 2009Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Aussie' Mechanic
Picture of postyr
Posted Hide Post
Two points. No, you can achieve what you want without manually changing the code after publishing, and, the “Add Base” is used for creating Newsletters and Email templates.

To place an image from an outside source, you can use your limited knowledge (and mine) of HTML.

Placing code into a Code Object within SS only requires the code itself to source the image. SS will create it’s own HTML when you publish to give it it’s own DIV tag.

Open a Code Object, then copy and paste the code below. Change the image ID to what you like, but don’t use Site Spinner’s method of ID’s.

Now change the “src” bit in between the quotation marks to the full address of the image on your server.


<img id="myImage" src="http://www.mysite.com/myImage.jpg" alt="My Image”>


The
alt=”My Image”
is not necessary. That is the “Title”, or what is shown on the user’s screen when they move their mouse over the image. You can remove that part completely, or just remove the text between the quotation marks.

Hope I have explained myself enough to help out.
 
Posts: 1167 | Location: Australia | Registered: April 17, 2007Reply With QuoteEdit or Delete MessageReport This Post
Junior Mechanic
Posted Hide Post
Yep, this works fine! Postyr (and Larry) thank you so much for yr input.

(Certainly is made clear again that I still have a lot to learn about SS)
 
Posts: 4 | Registered: August 18, 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.