Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review
Information
Print

The events API

Information
Latest News Enhanced

Pro
The Latest News Enhanced Pro extension triggers its own events in order to allow the use of new data sources (other than just articles or K2 items) and information types (other than just date, author...).

Note Data sources are restricted to the module for now.

Note You can find details in the code of the Newsfeeds and MyDetails plugins.

The events are:

  • Joomla 4 onLatestNewsEnhancedBeforeSave
  • onLatestNewsEnhancedGetData
  • onLatestNewsEnhancedGetDetailData
  • onLatestNewsEnhancedPrepareDetailSelection
  • onLatestNewsEnhancedPrepareForm
  • onLatestNewsEnhancedPrepareSelection

onLatestNewsEnhancedBeforeSave

Joomla 4 Adds the specific parameters for the data source to the module instance params.

onLatestNewsEnhancedGetData

Retrieves data.

onLatestNewsEnhancedGetDetailData

Returns the data/output for the information types.

onLatestNewsEnhancedPrepareDetailSelection

Returns the available information types.

onLatestNewsEnhancedPrepareForm

Adds specific selection parameters.

onLatestNewsEnhancedPrepareSelection

Returns the data type and availability.

Related tutorials and topics