View Issue Details

IDProjectCategoryView StatusLast Update
0017765phplist applicationMessage Managementpublic23-07-15 10:13
Reporterduncanc 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.0 
Target Versionnext patchFixed in Version3.2.0 
Summary0017765: Allow plugins to add to the view message page
DescriptionAllow a plugin to add its own data to the view message page. For example, the RSS Feed plugin can display the feed URL.

Add a new method to default plugin,
  function viewMessage($messageid, $messagedata)

A plugin can then override this method to return two values
the caption to be included in the left hand column
the html to be included in the right hand column

Then in admin/message.php call each plugin and add a row to the set of message fields when the plugin has returned a result.

See attached screenshot for how this might look.
TagsNo tags attached.

Activities

duncanc

22-07-15 18:50

developer  

michiel

22-07-15 20:18

manager   ~0056508

are you PRing that? Or shall I write it. Should be quite straightforward.

duncanc

22-07-15 22:36

developer   ~0056509

Yes, I have modified the code but wanted to check that the approach is ok. I will create a pull request tomorrow.

michiel

23-07-15 09:31

manager   ~0056510

Yes, I think it's a good idea. Some plugins have information that is sensible to display in this place.

duncanc

23-07-15 10:06

developer   ~0056511

See GitHub pull request https://github.com/phpList/phplist3/pull/18