Implemented How add image descriptions to a tag parameter gallery?

  • Torbjörn Nyström
  • Onderwerp Auteur
  • Offline
Lees meer
1 jaar 10 maanden geleden #2576 door Torbjörn Nyström
How add image descriptions to a tag parameter gallery? werd gestart door Torbjörn Nyström
I have many gallerys in multiple folders..
Making tag gallerys is very easy now with ochGlightbox and they work fine - but how do I add image descriptions to each file?

I used to do image descriptions via a simple txt-file inside the gallery-folder with my old Joomla 3 plugin (don't remember name of plugin).. 
How do I add image descriptions to ochGlightbox in Joomla 4 ? 
Discussie gesloten.
Lees meer
1 jaar 10 maanden geleden - 1 jaar 10 maanden geleden #2578 door Ruud van Lent
Beantwoord door Ruud van Lent in topic How add image descriptions to a tag parameter gallery?
Hi Torbjörn,

this is currently not possible using tags, it is possible via the module.

But the way you describe adding description with a text file is actually a good idea that I am willing to implement.

Do you have an example of the file you used with the previous plugin?
 
Laatst bewerkt 1 jaar 10 maanden geleden doorRuud van Lent.
Discussie gesloten.
Lees meer
1 jaar 10 maanden geleden #2580 door Ruud van Lent
Beantwoord door Ruud van Lent in topic How add image descriptions to a tag parameter gallery?
Ok,
so while I was t it i just thought let's go ahead and implement this.
If you could test, that would be great!

So how does it work?
In the directory holding the images you can create a "descriptions.json" file, this is a 'simple' text file where the data is entered in json format. This the plugin can easily read as this is a standardized way of data-entry.
below an example of a descriptions.json file
Code:
{     "andreia-alexandre-pVHIT6wVRUk-unsplash.jpg": "this is a \"test\"",     "omer-salom-PfTNxPww6bY-unsplash.jpg": "Another beautifull test" }

When there is an error in the descriptions.json file you can find the error in the logfile for the plugin.

You can download the test version of ochGlightBox in the 'private message' box of this message, at least I hope it is there as this is a new function of kunena that I haven't test yet.

Please let me know if you can download the test version and if this is (technically) working.

regards, Ruud.
De volgende gebruiker (s) zei dank u: Torbjörn Nyström
Discussie gesloten.
Lees meer
1 jaar 10 maanden geleden #2584 door Ruud van Lent
Beantwoord door Ruud van Lent in topic How add image descriptions to a tag parameter gallery?
Hi Torbjörn,

Just following up on the new descriptions.json functionality: did it work for you with the test version I provided?

If so I can release a new version.

Let me know,
have a nice weekend,
Ruud.
Discussie gesloten.
Lees meer
1 jaar 10 maanden geleden #2585 door Ruud van Lent
Beantwoord door Ruud van Lent in topic How add image descriptions to a tag parameter gallery?
Just went ahead and released version 2.1.0 with this change. Thanks for proposing this new feature!
Closing this topic now, if you have any other questions / suggestions feel free to open a new topic.
regards,
Ruud.
Discussie gesloten.