Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: kyomar on May 03, 2013, 07:36:22

Title: Gallery plugin - possible to set width and height?
Post by: kyomar on May 03, 2013, 07:36:22
Hi, I would like to set width and height on a per gallery base. I tried {gallery width: 60px height: 60px} ...{/gallery} but this didn't work. How can I do this? I am using the tiara template (very good by the way).

Thank you!

Title: Re: Gallery plugin - possible to set width and height?
Post by: webgift on May 03, 2013, 12:03:33
Here is the answer: Elxis 4.x Docs (https://www.elxis.net/docs/el/using-elxis/extending/preinstalled-content-plugins.html). Read the fourth preinstalled content plugin.
Title: Re: Gallery plugin - possible to set width and height?
Post by: kyomar on May 03, 2013, 13:10:53
thank you very much for your quick reply - very appreciated. I know how to set the parameters in the plugin edit page. But with this "all" galleries have the same thumbnail width and height, but I want to set the sizes individually for each gallery like I can do with the html 5 video plugin. Perhaps I am missing something.
Title: Gallery plugin - Set dimensions of galleries
Post by: webgift on May 03, 2013, 16:24:41
Sorry i didn't get it before. Unfortunately Gallery content plugin doesn't support such a feature. However i made some changes in order to be compatible with your needs.

Here are the steps:
1. Download and uzip the gallery.plugin.zip file.
2. Upload file gallery.plugin.php to folder: /components/com_content/plugins/gallery/
Title: Re: Gallery plugin - possible to set width and height?
Post by: Amigamerlin on May 03, 2013, 22:56:11
Sorry i didn't get it before. Unfortunately Gallery content plugin doesn't support such a feature. However i made some changes in order to be compatible with your needs.

Here are the steps:
1. Download and uzip the gallery.plugin.zip file.
2. Upload file gallery.plugin.php to folder: /components/com_content/plugins/gallery/

Thank you webgift !!! really usefull.
What about having this version as default version in EXLIS 4.0 ?
Title: Re: Gallery plugin - possible to set width and height?
Post by: kyomar on May 04, 2013, 03:04:42
wow, thank you so much webgift, works like a charm  ;D and don't worry about the misunderstanding. English isn't my mother language, so I may have not explained it clearly in the first place. I love Elxis and I cannot wait for the new reservation component to test and implement.
Title: Re: Gallery plugin - possible to set width and height?
Post by: Amigamerlin on May 04, 2013, 08:31:14
I modified the XML adding the "how to use"  ;D.
Here the full package.
Title: Re: Gallery plugin - possible to set width and height?
Post by: webgift on May 04, 2013, 10:52:57
You are welcome, kyomar and Amigamerlin.
Title: Re: Gallery plugin - possible to set width and height?
Post by: Amigamerlin on May 04, 2013, 17:02:39
Webgift what about having this plugin as default in ELXIS 4.0?
Title: Re: Gallery plugin - possible to set width and height?
Post by: datahell on May 04, 2013, 19:43:02
We want the plugins and modules to have as less configuration options as possible.
Especially for the plugins the ideal format is this: {plugin}something{/plugin}, nothing else, no parameters, symbols, mathematical signs, quotes, etc.

Most users get confused with many options, they need to install something and use it instantly. My main thinking is on newbies, not on advanced users. Elxis must be easy and fast to use for them. I also believe that sites should have a similar appearance from page to page, so a global option for the thumbnails width and height is enough. Finally, the included plugins are basic extensions, if you want more advacned or custom functionality you can create your own plugin with more options and different style.
Title: Re: Gallery plugin - possible to set width and height?
Post by: Amigamerlin on May 04, 2013, 20:05:25
We want the plugins and modules to have as less configuration options as possible.
Especially for the plugins the ideal format is this: {plugin}something{/plugin}, nothing else, no parameters, symbols, mathematical signs, quotes, etc.

Most users get confused with many options, they need to install something and use it instantly. My main thinking is on newbies, not on advanced users. Elxis must be easy and fast to use for them. I also believe that sites should have a similar appearance from page to page, so a global option for the thumbnails width and height is enough. Finally, the included plugins are basic extensions, if you want more advacned or custom functionality you can create your own plugin with more options and different style.

Sorry datahell but this is not the point. I can understand what you write but at least give the advanced users the opportunity to choose the way, including the parameters disabled by default, just like webgift . Advanced users can be gratefull for this. For me having width and height options is really important and like you have seen not for me only.
This is only what I think about.

Ciao
Title: Re: Gallery plugin - possible to set width and height?
Post by: datahell on May 04, 2013, 20:14:03
OK, then Webgift decides  ;D
He can put his changes on the plugin on Elxis 4.1 release if he wish.
Title: Re: Gallery plugin - possible to set width and height?
Post by: Amigamerlin on May 04, 2013, 20:15:32
Thanks Datahell, this is Democracy !!!  ;D ;D ;D
Title: Re: Gallery plugin - possible to set width and height?
Post by: webgift on May 06, 2013, 12:33:02
Set dimensions of image thumbnails per gallery set has been applied on Elxis CMS 4.1 Poseidon. However i am fun of simplicity too :)