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


Permlink Replies: 6 - Pages: 1 - Last Post: 06-Feb-2020 23:59 Last Post By: jGromit
dtccbon

Posts: 3
Registered: 24-Oct-2019
Just a question
Posted: 04-Feb-2020 11:20
 
  Click to reply to this thread Reply
Do you have an album with a download link for an archive
For example you see photo1 and you can push the download icon for photo1.zip ?
jGromit

Posts: 7,784
Registered: 31-Jan-2006
Re: Just a question
Posted: 04-Feb-2020 15:19   in response to: dtccbon in response to: dtccbon
 
  Click to reply to this thread Reply
Many skins allow you to show a download icon for an individual photo. There's no need to use zip for a single photo - the file would be the same size, since zip can't compress a JPG any more than it's already compressed.
dtccbon

Posts: 3
Registered: 24-Oct-2019
Re: Just a question
Posted: 04-Feb-2020 16:05   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
the idear it's for downloading the raw files not the jpg
And for some of my works to download the obj files or some .blend files

Edited by: dtccbon on 04-Feb-2020 16:06
jGromit

Posts: 7,784
Registered: 31-Jan-2006
Re: Just a question
Posted: 04-Feb-2020 16:14   in response to: dtccbon in response to: dtccbon
 
  Click to reply to this thread Reply
Since jAlbum knows nothing about things like sidecar files, you'd have to take care of offering that material manually. You could create a zip file, upload it along with the album, and put a download link in the caption of the image. You could even anchor the link to a download icon, perhaps one that the skin already provides.
jGromit

Posts: 7,784
Registered: 31-Jan-2006
Re: Just a question
Posted: 04-Feb-2020 18:26   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
A quick demo with Minimal, with an arbitrary little zip file. I uploaded the zip file separately. Made one tiny CSS tweak manually to get the download icon to align properly - in most skins, you could take care of that in the skin settings, but Minimal doesn't provide a way to do it.

https://jgromit.jalbum.net/downloadZip/

ETA: The comment on the second image:
Download the zip: <a href='https://jgromit.jalbum.net/loremipsum.zip'><img src='../res/download.png'></a>
dtccbon

Posts: 3
Registered: 24-Oct-2019
Re: Just a question
Posted: 06-Feb-2020 09:52   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I don't see your response before my solution but I do something like that
First I add a user variable "zip" = witch is the concatenation between ${label} and ".zip"
And after that I change the "legend models" to
<a href=${currentFolder}${zip}><div class="comment">${zip}</div></a>
Perhaps in the future I can change ${currentFolder}${zip} to ${zipFolder}{zip} but for my test it's not neccessary

corry for my english

Edited by: jGromit on 06-Feb-2020 17:57, to add "code" tags.
jGromit

Posts: 7,784
Registered: 31-Jan-2006
Re: Just a question
Posted: 06-Feb-2020 23:59   in response to: dtccbon in response to: dtccbon
 
  Click to reply to this thread Reply
dtccbon wrote:
I don't see your response before my solution but I do something like that
First I add a user variable "zip" = witch is the concatenation between ${label} and ".zip"
And after that I change the "legend models" to
<a href=${currentFolder}${zip}><div class="comment">${zip}</div></a>

That will certainly work. It might be nice to add a download icon - many skins include one, so poke around in the res output folder to see if there's something you can use. The catch is that the path to res will be different at every level of the album, so if you have folders, it will be tricky to control the link to the icon.

corry for my english

It's better than my French. ;)

Legend
Forum admins
Helpful Answer
Correct Answer

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