Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
onContentPrepare ($context, &$item, &$params, $page=0) | |
Fonctions membres privées | |
prepare ($string, $context, $item) | |
Plug-in to show a custom field in eg an article This uses the {fields ID} syntax
onContentPrepare | ( | $context, | |
& | $item, | ||
& | $params, | ||
$page = 0 |
|||
) |
Plugin that shows a custom field
string | $context | The context of the content being passed to the plugin. |
object | &$item | The item object. Note $article->text is also available |
object | &$params | The article params |
int | $page | The 'page' number |
Références $context, $item, elseif, JPATH_ADMINISTRATOR, et JLoader\register().
|
private |
Prepares the given string by parsing {field} and {fieldgroup} groups and replacing them.
string | $string | The text to prepare |
string | $context | The context of the content |
object | $item | The item object |
Références $context, $field, $fields, $groups, $i, $id, $item, $layout, $output, $parts, FieldsHelper\extract(), FieldsHelper\getFields(), et FieldsHelper\render().