You are here: Foswiki>Tasks Web>Item11594 (09 Apr 2012, GeorgeClark)Edit Attach

Item11594: SubscribePlugin needs better method to limit when to render the subscribe button

pencil
Priority: Enhancement
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component: SubscribePlugin
Branches: trunk
Reported By: GeorgeClark
Waiting For: GeorgeClark
Last Change By: GeorgeClark
This really needs to be under tight admin control due to performance issues. See Item11326.

DISABLEDPLUGINS can be used, but overriding it in a topic could fail to include this plugin, resulting in issues. The admin should be able to specify which webs get the subscribe button without depending upon the DISABLEDPLUGINS setting.

  • Add config parameter: $Foswiki::cfg{Plugins}{SubscribePlugin}{ActiveWebs} = '';
  • Add a new context variable - SubscribePluginAllowed and change templates to use this context.
  • Add setting SUBSCRIBEPLUGIN_ACTIVEWEBS ignored if the configuration parameter is specified.

-- GeorgeClark - 03 Mar 2012

Note, This change will cause an empty Subscribe link using 1.1.5 templates:
Edit | Attach |  | Print version | ...

The fix for 1.1.x is to edit the file templates/viewtopicactionbuttons.tmpl and change the context test from SubscribePluginEnabled to SubscribePluginAvailable

-- GeorgeClark - 09 Apr 2012
 

ItemTemplate edit

Summary SubscribePlugin needs better method to limit when to render the subscribe button
ReportedBy GeorgeClark
Codebase trunk
SVN Range
AppliesTo Engine
Component SubscribePlugin
Priority Enhancement
CurrentState Closed
WaitingFor GeorgeClark
Checkins distro:8bf069e6b6cd distro:6cb54115af1b
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches trunk
trunkCheckins distro:8bf069e6b6cd distro:6cb54115af1b
Release01x01Checkins
Topic revision: r4 - 09 Apr 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy