WT Article Select
- Category: Joomla plugins
- Version: 1.0.0
- Date:
A Joomla custom field plugin for selecting content with the ability to upload material data, its custom fields, and action buttons in the admin area.
Description
WT Article Select Field is a Joomla custom field plugin for selecting an article through the standard article modal selector. The plugin is designed for Joomla custom fields in the article context and extends the default field behaviour by optionally loading additional runtime data for the selected article.
Purpose
The plugin lets an editor store a Joomla article selection as a custom field value and use that value in the field layout as a link to the selected article. When needed, the plugin can also load the full article object and the custom fields of the selected article.
Plugin Parameters
- Load article data? When enabled, the full selected article object is loaded during field preparation and exposed in
$field->article. - Load article custom fields? When enabled, the custom fields of the selected article are loaded and exposed in
$field->jcfields. - Show create article button? When enabled, the field can open the Joomla core article creation modal in administrator forms.
- Show edit article button? When enabled, the field can open the Joomla core article edit modal in administrator forms.
Field Parameters
The same four parameters are available on the individual field level. Each field can either override the global plugin setting or keep using the plugin default.
Runtime Data Contract
$field->valuecontains the resolved URL of the selected article.$field->rawvaluecontains the originally stored field value.$field->article_idcontains the identifier of the selected article.$field->article_titlecontains the article title used for link output.$field->articlecontains the full article object when article-data loading is enabled.$field->jcfieldscontains the article custom fields when article-field loading is enabled.
Default Layout Behaviour
The bundled field layout renders a link to the selected article even when full article loading and article custom field loading are disabled. The link is built from the runtime data prepared by the plugin.
Administrator Usage
The field relies on Joomla core modal_article behaviour and keeps the standard administrator interaction model. When the related parameters are enabled and ACL allows it, the field can display Joomla core create and edit article actions.
Joomla
- Extension type:
- Plugin
- Folder:
- Fields
- Joomla version:
- 6.0.4