View Issue Details

IDProjectCategoryView StatusLast Update
0017262phplist applicationPlugin APIpublic11-08-14 19:08
Reporterduncanc 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.6 
Target VersionFixed in Version3.0.7 
Summary0017262: Allow plugin to have public pages
DescriptionAn enhancement to allow a plugin to provide public pages accessed through a url such as www.mysite.com/lists/?pi=myplugin&p=mypage

By default a plugin will not have any public pages. The plugin constructor has to override a $publicPages variable if it wants to provide some.

The plugin is responsible for validating any further query parameters. So a page could be totally public and viewable by anyone, or might require a uid parameter, similar to the preferences page, so that it can display results specific to one subscriber.

An example of use is to provide a "view in browser" function. Currently the installation of the "View in browser" plugin has manual steps to allow an additional page to be accessed. See https://github.com/bramley/phplist-plugin-viewbrowser

TagsNo tags attached.

Activities

duncanc

11-07-14 12:54

developer   ~0054231

See GitHub pull request https://github.com/michield/phplist/pull/34

michiel

11-07-14 15:49

manager   ~0054235

nice !

duncanc

11-08-14 10:59

developer   ~0054547

There is a bug in my commit that stops the subscribe, preferences etc pages working. I have created a new pull request, see https://github.com/michield/phplist/pulls

This needs to be applied to the pending release.

michiel

11-08-14 11:24

manager   ~0054548

I think I already found and fixed that.

michiel

11-08-14 19:08

manager   ~0054562

yes, just checked, but I had already fixed that. In fact, I rewrote the whole if block a little