This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 16 - Pages: 2 [ 1 2 | Next ] - Last Post: 21 Apr 19, 18:07 Last Post By: AndreWolff Threads: [ Previous | Next ]
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Make it possible to add a local web location via a relative URL
Posted: 11 Jul 17, 22:17
 
  Click to reply to this thread Reply
I have in my output folder
D:\Users\Andre\Documents\Mijn websites\jalbum.net\Vecht_SaharaN
a sub-folder Pano with a panoramic web page:
D:\Users\Andre\Documents\Mijn websites\jalbum.net\Vecht_SaharaN\Pano

I like to add this as a web location in my album, so I add a New page / Web location and enter as URL the name of the index file in the sub-folder: Pano/index.html see enclosed screen-shot.

After I made the album and displayed the new web location, I get error: The DNS address of the pano server can not be found.

It turns out that jAlbum converted my relative URL Pano/index.html into http://Pano/index.html
which is incorrect, because my pano web page is in location http://andrewolff.jalbum.net/Vecht_SaharaN/Pano/index.html

Please make it possible to add local web pages, by adding a file browse button after the target URL field, as is already available after the Image URL field.
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 11 Jul 17, 22:26   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 12 Jul 17, 08:42   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Yes the nucleus of the request is the same, but my requested implementation with a file browse button is more user friendly: less chance that the user enters wrong characters and there is no need to remember the meaning of dots in names like ../pano and ./pano

I use such an implementation in the links settings of the Slide Show 4 skin and PhotoSwipe skin.
davidekholm

Posts: 3,581
Registered: 18-Oct-2002
Re: Make it possible to add a local web location via a relative URL
Posted: 12 Jul 17, 09:42   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
I aim to support relative URLs in the next version. There will likely be a local file browser button too.
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 12 Jul 17, 09:45   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Nice!
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 12 Jul 17, 13:08   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
There will likely be a local file browser button too.

Of course, that raises the question about the relative URL: "relative to what?" I suppose relative to the output directory. Fine, as long as I'm not stuck with that. A user's website may not be organized on the server the same way he organizes his material on his PC.
davidekholm

Posts: 3,581
Registered: 18-Oct-2002
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 10:56   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
We naturally need to agree on what to make the URL relative to. Your suggestions please!
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 12:20   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
We naturally need to agree on what to make the URL relative to. Your suggestions please!
The jAlbum Output folder of course, what else?
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 12:36   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Yes, that's the only possibility - nothing else makes any sense at all.

And as I suggested in my own thread on this, jAlbum should detect any manual entry that starts with a dot, and take that as a signal that the user wants a relative URL.
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 13:33   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
And as I suggested in my own thread on this, jAlbum should detect any manual entry that starts with a dot, and take that as a signal that the user wants a relative URL.
I use in my skins the rule everything that does not start with 'http' is a relative URL.
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 14:05   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
I use in my skins the rule everything that does not start with 'http' is a relative URL.

How exciting for you.

But that has nothing to do with this subject. As implemented, the webLocation entry box currently assumes that anything entered there is an absolute address - it prepends http:// to the URL. That's not a bad thing to do - you don't want to force users to have to enter http:// every time they want to specify a webLocation.

But there needs to be a way to signal to jAlbum that you really do want a relative URL. Starting with a dot can be taken as a signal that that's what the user wants to do.
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 14:45   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
That's not a bad thing to do - you don't want to force users to have to enter http:// every time they want to specify a webLocation.
You known how to handle this with the clipboard?
But there needs to be a way to signal to jAlbum that you really do want a relative URL. Starting with a dot can be taken as a signal that that's what the user wants to do.
Not starting with 'http' gives the same signal and is easier to understand by non-programming users.
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 14:50   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Not starting with 'http' gives the same signal and is easier to understand by non-programming users.

You're just not getting this, are you? A user has a site that he wants to enter as a webLocation. He types into the box:

example.com/thisAlbum

Does he expect that to be a relative URL?
AndreWolff

Posts: 1,980
Registered: 14-Dec-2007
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 14:55   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
jGromit wrote:
You're just not getting this, are you? A user has a site that he wants to enter as a webLocation. He types into the box:

example.com/thisAlbum

Does he expect that to be a relative URL?

Yes of course, because the string does not start with 'http'.
JeffTucker

Posts: 7,672
Registered: 31-Jan-2006
Re: Make it possible to add a local web location via a relative URL
Posted: 13 Jul 17, 15:00   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
jGromit wrote:
You're just not getting this, are you? A user has a site that he wants to enter as a webLocation. He types into the box:

example.com/thisAlbum

Does he expect that to be a relative URL?

Yes of course, because the string does not start with 'http'.

Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums