[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] File Gallery: clarify ambiguous "Files" sort option with a tooltip
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]> Mon, 13 Jul 2026 23:14:33 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a55715999afb_3919c37870078@gitlab-sidekiq-low-urgency-cpu-bound-v2-dff785bd7-f58tc.mail> |
ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
11e677b8 by Moïse Nturubika at 2026-07-13T23:01:21+00:00
[FIX] File Gallery: clarify ambiguous "Files" sort option with a tooltip
---
* [FIX] File Gallery: clarify ambiguous "Files" sort option with a tooltip
See merge request tikiwiki/tiki!10711
- - - - -
2 changed files:
- fgal_listing_conf.php
- templates/list_file_gallery_content.tpl
Changes:
=====================================
fgal_listing_conf.php
=====================================
@@ -32,7 +32,7 @@ $fgal_listing_conf = [
'author' => ['name' => tra('Creator')], //this used to be Author but updated Nov2010
'last_user' => ['name' => tra('Last modified by')], //this used to be 'Last editor' but updated Nov2010
'comment' => ['name' => tra('Comment')],
- 'files' => ['name' => tra('Files')],
+ 'files' => ['name' => tra('Files'), 'description' => tra('Number of files contained in a sub-gallery (not applicable to individual files)')],
'hits' => ['name' => tra('Hits')],
'lastDownload' => ['name' => tra('Last download')],
'lockedby' => ['name' => tra('Locked by'), 'icon' => 'lock'],
=====================================
templates/list_file_gallery_content.tpl
=====================================
@@ -53,7 +53,11 @@
{if isset($other_columns)}
{$other_columns}
{/if}
- {self_link sort_mode=$propname|cat:'_asc'}{$fgal_listing_conf.$propname.name}{/self_link}<br>
+ {if !empty($item.description)}
+ {self_link sort_mode=$propname|cat:'_asc' _title=$item.description _class='tips'}{$fgal_listing_conf.$propname.name}{/self_link}<br>
+ {else}
+ {self_link sort_mode=$propname|cat:'_asc'}{$fgal_listing_conf.$propname.name}{/self_link}<br>
+ {/if}
{/capture}
{/if}
{/if}
@@ -61,7 +65,7 @@
{if isset($gal_info.$key_name) and ( $gal_info.$key_name eq 'y' or $gal_info.$key_name eq 'i'
or $gal_info.$key_name eq 'a' or $propname eq 'name' )}
{$propval=$item.name}
- {$link_title=''}
+ {$link_title=$item.description|default:''}
{$td_args=''}
{if $gal_info.$key_name eq 'i' or $propname eq 'type' or ( $propname eq 'lockedby'
@@ -129,9 +133,15 @@
{$nbCols=1}
{/if}
<th>
- {self_link _sort_arg=$sort_arg _sort_field=$other_columns_selected _title=$fgal_listing_conf.$other_columns_selected.name}
- {$fgal_listing_conf.$other_columns_selected.name}
- {/self_link}
+ {if !empty($fgal_listing_conf.$other_columns_selected.description)}
+ {self_link _sort_arg=$sort_arg _sort_field=$other_columns_selected _title=$fgal_listing_conf.$other_columns_selected.description _class='tips'}
+ {$fgal_listing_conf.$other_columns_selected.name}
+ {/self_link}
+ {else}
+ {self_link _sort_arg=$sort_arg _sort_field=$other_columns_selected _title=$fgal_listing_conf.$other_columns_selected.name}
+ {$fgal_listing_conf.$other_columns_selected.name}
+ {/self_link}
+ {/if}
</th>
{/if}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/11e677b8f5408b4510779b6e5c570b9626cb1f18
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/11e677b8f5408b4510779b6e5c570b9626cb1f18
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs