This suggestion addresses an issue in the Joomla Tags component (com_tags) to enhance template customization:
tag_columns Parameter in Singular Tag View: The tag_columns parameter is not available in the singular tag view template (components/com_tags/tmpl/tag/list.xml), preventing users from selecting custom layouts (e.g., grid vs. list) in this context.This change would improve flexibility for themers and site admins, ensuring consistency across views.
tag_columns to Singular Tag View Templatetag_columns parameter controls layout rendering (e.g., number of columns for grid display) but is only defined in the default list view template (components/com_tags/tmpl/default/list.xml).components/com_tags/tmpl/tag/list.xml), this parameter is absent, forcing a fixed layout and limiting customization.<field name="tag_columns" ... /> to components/com_tags/tmpl/tag/list.xml to mirror the default view.1 (single column) or match the global params.<!-- Add to components/com_tags/tmpl/tag/list.xml -->
<field
name="tag_columns"
type="number"
label="COM_TAGS_TAG_COLUMNS_LABEL"
description="COM_TAGS_TAG_COLUMNS_DESC"
default="1"
min="1"
max="12"
filter="integer"
/>Update the view's display() method in components/com_tags/views/tag/view.html.php to read and apply $this->params->get('tag_columns', 1) in the template loop.
Ensure backward compatibility by falling back to the default view's logic if needed.
| Labels |
Added:
No Code Attached Yet
|
||