Webpage: No relative links!

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Ponytail

Webpage: No relative links!

Post by Ponytail »

L.S.,

I want to publish a XNview-created webpage on my website. Now all links to the pictures are to the originals on my C-drive. Therefore other then myself cannot see them.
Is there a way/setting to make XN-view create the proper links or do I have to alter it in all pages by hand, using MS Frontpage f.i.?

Who will/can help me?

Ponytail
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

Strange, it should make the links relative (ie, they should simply point to "image.gif" not "c:\joe_smith\documents\images\image.gif"). I have no idea why yours did it the wrong way.

I would not reccommend using frontpage (especially in this case). It'd be much easier to correct the problem by using a text editor such as notepad. Most text editors have a replace command, you can use this to automatically replace all instances of "c:\joe_smith\documents\images\" with "http://yoursite.com/imagesfolder/" or whatever's appropriate.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Strange problem - everything works fine here. Could you please make a screenshot (Alt+Prt Screen) of your dialog "Web page Create" dialog so that we can see the settings (Template, output dir, ...).
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

You could also try a different template and see if you get the same results. If you don't, then there may be a bug in the template.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Ponytail

Post by Ponytail »

L.S.,

First of all thanks for the reactions. I like quick responses!
Below I've attached the screenshot of my WebpageCreate-settings.
Were do I go wrong?

Image

Many thanks in advance for you answers!

Ponytail
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

1) Try a different template, just to see if it has the same problem.
2) Try checking the option to copy images to target folder (I believe that would be that "kopier bronbestanden..." one) and see if that works.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Olum

relative links or absolute

Post by Olum »

1)
box : no html per pic = unchecked
box : copy orig pics to target = unchecked

result :
thumbs overview pathes are relative
html of pic has relative links, only img src is absolute local.

2)
box : no html per pic = unchecked
box : copy orig pics to target = checked

result :
thumbs overview and single html are relative

3)
box : no html per pic = checked
box : copy orig pics to target = checked

result :
relative linked

4)
box : no html per pic = checked
box : copy orig pics to target = unchecked

result :
hrefs are absolute local

i think, xnview can not show up the relative path from location of marked pics for web creation up to target folder.
In my case i had folder \silvester within folder \_o for original pics (2MB's) marked up some files (.jpg).
Destination folder is \silvester.

i think its standard for webcreation, that selected pics are in folder under thumbs.html . generally one level lower min. .

on other hand it would be great to see overview of available template commands ;-) can you show up?
Olum

relative links or absolute

Post by Olum »

changeing templ. doesnt bring effect too.
vendex5

Re: relative links or absolute

Post by vendex5 »

Olum wrote:changeing templ. doesnt bring effect too.
Hi
I used ..\ in the output directory
orig in original subfolder
thumb in thumb sub folder

The links were then relative eg thumb/dcp0011.gif and orig/DCP0011.html
Post Reply