? Pending

User tests: Successful: Unsuccessful:

avatar piotr-cz
piotr-cz
24 Mar 2017

Pull Request for Issue -.

Summary of Changes

Plugin events are triggered by the dispatcher in order specified by the plugins administration component. However some plugin types like system plugins are dispatched before content plugins.

The pull requests moves onContentAfterTitle, onContentBeforeDisplay and onContentAfterDisplay from fields system plugin to fields content plugin - so it's possible to define where output will be rendered on the page.

I've prepared an example where I'm using both vote plugin and fields plugin to show a gallery. Both are configured to show on onContentBeforeDisplay event.
The goal is to

Testing Instructions

  1. Switch On the vote plugin
    Extensions > Plugins > Content - vote, make sure the Position is set to Top
  2. Add new Custom field
    Content > Fields > New, make sure the Automatic Display is set to Before Display
  3. Change ordering o plugins
    Extensions > Plugins > Search Tools
    Select Type: Content, Sort table by: Ordering Ascending

Expected result

User can choose the order of content plugins to display
j-fields-after

Actual result

The fields plugin output is always displayed before any other content plugins.
j-fields-before

Documentation Changes Required

none

cc @laoneo

avatar piotr-cz piotr-cz - open - 24 Mar 2017
avatar piotr-cz piotr-cz - change - 24 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Mar 2017
Category Front End Plugins
avatar piotr-cz
piotr-cz - comment - 24 Mar 2017

Superseeded by #14875 as this PR contains some unnecessary repo maintenance commits

avatar piotr-cz piotr-cz - change - 24 Mar 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-03-24 09:35:23
Closed_By piotr-cz
Labels Added: ?
avatar piotr-cz piotr-cz - close - 24 Mar 2017

Add a Comment

Login with GitHub to post a comment