Content

onContentPrepareForm

Description This event is triggered in loadForm method of all form models.

public function onContentPrepareForm(JForm $form, $data)
{
    // Do something
    return;
}

Arguments $form - a JForm object. $data - the data that should be bind to the form.

To check the context of the event you can use the name of the form like com_competition.appform, com_competition.filed etc.

onContentPrepare

onContentAfterTitle

onContentBeforeDisplay

onContentAfterDisplay

Description These events are triggered in entry's view. Read more about the practical usage in Using content plugins on entry page document.

public function onContentAfterDisplay($context, $item, $params, $page = 0)
{
    // Do something
    return;
}

Arguments $context - the context of the event, β€˜com_competition.participant’ $item - a reference to the entry's object that is being rendered by the view. $params - a Joomla\Registry\Registry object containg parametres. $page - not used and is passed for consistency. Always 0.

$item->text property contains the tags of plugins that are specified in General parameters of NorrCompetition.

Last updated