Page 1 of 1
Download available in only 1 page
Posted: 30 Jun 2016, 03:53
by vboa68
Hi karl
quick question: how can I allow user to download photo or files posted in only one page?
I've a created a new page called "Limited Area" where only some users can enter with User/Pwd.
From here, they should be able to download photos or files..
But photos in all remaining folders must not be available to download..
thx
vincenzo
Re: Download available in only 1 page
Posted: 30 Jun 2016, 07:45
by mjau-mjau
There is no simple solution to this, if you have removed the download-button and also set "prevent right-click", which is a global javascript that we can't apply on a per-page basis.
There are some options, for example by creating a "download" button for images in specific folders. Unfortunately, there is a small issue with this currently, because there is no dynamic {path} variable. You can read this post, which has a complicated fix:
https://forum.photo.gallery/viewtopic.p ... 256#p40256
I will fix the above for next release, but that might be the only solution, unless we add new settings to NOT prevent download on certain folders. I certainly don't want to create a complex toolbar-configuration for each and every page ... That's just not practical for anybody.
Will add to my list and give it some thought for future updates ...
Re: Download available in only 1 page
Posted: 30 Jun 2016, 08:46
by vboa68
thk karl
i 've read the post you have included..
I've put the function x3_load_page() into the settings -> custom -> custom javascript, but now, where have I to put the <a href="{image_path}" class="button small" target="_blank" download>Download</a>?
In the "Limited Area page"? in every photo? in which field?
thx
vincenzo
Re: Download available in only 1 page
Posted: 30 Jun 2016, 10:14
by mjau-mjau
You only need to do it once, since it is dynamic link with {image_path}. Go to page
settings -> image, and paste into
Default Image Description:
You will need to make sure this page is also set to display descriptions in the gallery layout, if you want the button to display there also.
Re: Download available in only 1 page
Posted: 30 Jun 2016, 11:23
by vboa68
hi karl
done.. but unfortunately I can't see the button..
I've included the description and date in the settings.. but nothing..
bye
vincenzo
Re: Download available in only 1 page
Posted: 30 Jun 2016, 12:16
by mjau-mjau
vboa68 wrote:done.. but unfortunately I can't see the button..
I've included the description and date in the settings.. but nothing..
No link? How am I supposed to check ... This method is tested successfully.
It works if you have enabled descriptions, as long as it's not a justified layout. If so, you can add DESCRIPTION to the CAPTION instead. In either case, it will display in the popup window if you are displaying descriptions.
Re: Download available in only 1 page
Posted: 30 Jun 2016, 13:08
by vboa68
infact.. you're right! I forgot to send to you the link...!
However: found.. it was the layout .. I set the grid.. and now it works!!
Last question: Can I also upload a zip file with a collection of all photos so that user can downloaded it in 1 shot?
thx
vincenzo
Re: Download available in only 1 page
Posted: 30 Jun 2016, 13:15
by mjau-mjau
vboa68 wrote:Last question: Can I also upload a zip file with a collection of all photos so that user can downloaded it in 1 shot?
Yes. Just upload the ZIP file into the folder, and you can add a link into the page description, for example:
<a href="{path}/filename.zip">Download All Images</a>
Re: Download available in only 1 page
Posted: 01 Jul 2016, 03:16
by vboa68
hi karl
perfect! it works!
thx
bye
vincenzo