Loading...
 
Features / Usability

Features / Usability


Re: Can Slideshow Include Image Title/Description?

posts: 214

I don't know that it would be called a problem, nothing is being turned off.

I just looked through the file_gallery_slideshow.tpl files, and the wikiplugin_files.php for Tiki 2 through Tiki 9.

The tpl file has been around since at least Tiki 1.9, and the plugin Files since Tiki 3. But the option to display the title/description wasn't added to plugin Files until Tiki 9. The option just was not added to the File Galleries slideshow when it was added to plugin Files.

It could be added as an option to the File Galleries. Maybe someone will do it sometime in the future.

I asked if that had been done in any of the Tikis above 9 on irc, and Marc Laporte suggested I try it on demo.tiki.org. I tried it on Tiki 11 and it isn't there yet.

If you want to change the code to get the name or description (it appears I was wrong above, only one or the other can be selected), in /tiki-list_file_gallery.php, the code that calls the tpl file looks like this

Copy to clipboard
$smarty->display('file_gallery_slideshow.tpl'); die();

To get the Description added to the slide show, add a smarty assign above those lines:

Copy to clipboard
$smarty->assign('caption', 'd'); $smarty->display('file_gallery_slideshow.tpl'); die();


Assign an 'n' if you want the name, or an 'f' if you want the file name.

Tom

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting