phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0017765phplist applicationMessage Managementpublic22-07-15 18:5023-07-15 10:13
Reporterduncanc 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
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.
Attached Filespng file icon Screenshot from 2015-07-22 18:43:53.png [^] (39,535 bytes) 22-07-15 18:50

- Relationships

-  Notes
(0056508)
michiel (manager)
22-07-15 20:18

are you PRing that? Or shall I write it. Should be quite straightforward.
(0056509)
duncanc (developer)
22-07-15 22:36

Yes, I have modified the code but wanted to check that the approach is ok. I will create a pull request tomorrow.
(0056510)
michiel (manager)
23-07-15 09:31

Yes, I think it's a good idea. Some plugins have information that is sensible to display in this place.
(0056511)
duncanc (developer)
23-07-15 10:06

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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker