Page 1 of 1

parameters for a specific folder

Posted: 09 Jan 2012, 15:59
by titi_67
Hello :)

I am about to finish my site whose theme is wildlife photography, my passion. In this site I have a private area reserved for my family and accessible only by password.
I would like in this part private (folder: family), and only one, to add the download button in the toolbar hand controls.

Is it possible to program this feature in the settings folder and if so, what order should I enter?

Thank you again.

Christian

Re: parameters for a specific folder

Posted: 09 Jan 2012, 23:54
by mjau-mjau
Actually, you cannot add the download button to the maincontrols, but you can add it to the imagebuttons (that display when hovering mouse over displayed image). This can be achieved by using folder parameters for that specific folder:
https://www.photo.gallery/documentation/folder-parameters/

To add the download button in the main controls, they can add this string into folder parameters:
Code
image.imagebuttons.buttons=window,popup,download,zoomin,zoomout,share,fotomoto
Obviously, the above is depending on what buttons items you want. Just make sure the "download" item is there ... and in the main settings, you should remove the download button of course.

It can be added to the maincontrols also, but you would have to edit an XML file first: Open iv-includes/include/config.xml, and change the following line:
Code
<items type="array" description="Selects what items to display in the main controls" options="togglethumbnails,previous,scrollinfo,next,toggleplay,sfx,html,togglefullscreen,zoomin,zoomout,link,purchase,sendlink,contact,share,fotomoto,close">togglethumbnails,previous,scrollinfo,next,toggleplay,togglefullscreen,fotomoto</items>
... to ...
Code
<items type="array" description="Selects what items to display in the main controls" options="togglethumbnails,previous,scrollinfo,next,toggleplay,sfx,html,togglefullscreen,zoomin,zoomout,link,purchase,sendlink,contact,share,fotomoto,download,close">togglethumbnails,previous,scrollinfo,next,toggleplay,togglefullscreen,fotomoto,download</items>
Now you can add the download button to main controls also from the admin settings ...

Re: parameters for a specific folder

Posted: 10 Jan 2012, 21:30
by titi_67
Hello and thank you mjau-mjau for your help: D

I tried your solution by including code in your "folder parameters" for the folder, but the download button did not appear: (
So for now, I have chosen to provide the "upload image" by right clicking the mouse.

Re: parameters for a specific folder

Posted: 11 Jan 2012, 00:25
by mjau-mjau
Can I see a link to the gallery folder where you are trying to apply these folder parameters?

Re: parameters for a specific folder

Posted: 12 Jan 2012, 06:16
by titi_67
Hello,

I can not for now, give you the link to my site because it is not yet online, and the party consists of photographs of a private nature.

In fact, looking good but it works .... because there is always the "but" it does not work with sub-directory: cry:
An example for the year 2011, I have a path like this: a Famille/photos/1999 2012/2011 / (and in this case I have 63 directories 2011 (event 1 = directory). Of course I have almost as many years directory: cry: This would imply that I type in the command line every penny-sub directory! solution is still a bit heavy ...
The ideal would be to have to take this command line only once in / Family /. No?
Anyway, thank you to you for your help: D

Re: parameters for a specific folder

Posted: 12 Jan 2012, 21:34
by mjau-mjau
Well, if I can't look at it, it is a bit hard to say why its not working ...

As for the sub-directory that "does not work" ... I don't know what this is either, or what you mean. Is there an error or what? I can't diagnose this without seeing whats wrong, sorry. Command line for what?

Re: parameters for a specific folder

Posted: 14 Jan 2012, 07:27
by grimurnet
Where is version 2.8 on the radar. I know many have been asking but is it nearly ready or is there a long way to it. Is there no beta at least and then people can say if there is anything missing or would like to have something added to it. Just a thought. I'm really excited for the html5 version and jquery/css3

Re: parameters for a specific folder

Posted: 15 Jan 2012, 01:16
by mjau-mjau
grimurnet wrote:Where is version 2.8 on the radar. I know many have been asking but is it nearly ready or is there a long way to it. Is there no beta at least and then people can say if there is anything missing or would like to have something added to it. Just a thought. I'm really excited for the html5 version and jquery/css3
Yea sorry ... We are working on it, but I can't provide any exact details ...

Re: parameters for a specific folder

Posted: 15 Jan 2012, 05:11
by grimurnet
Just being curious, just take your time, It takes time to make a great gallery and I know you guys will make a great one :-)