• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4901: Broken templates for Edit topic ACL in 4.2

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension WebPermissionsPlugin Normal Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Hy, I have installed WebPermissions and tried to enable Topic ACL by adding Set SKIN = webpermissions, pattern in my webpreferences. But afterwards when going to more topic actions I've got a white page !! Any Idea ?

Thanks, regards, eric

-- TWiki:Main/EricCharikane - 29 Oct 2007

Sorry, I have no idea what you are talking about. Are you trying to install WebPermissionsPlugin? If you need installation assistance, use the Support web on TWiki.org, or ask on IRC.

No action.

CC

Hi Crawford, Well my issue is quite simple, If I try to use Webpermissions with the upcoming twiki 4.2 , and enable Topic ACL, when I try to access "more topic action" I get an empty page because the templates provided by the plugin do not work with the change made in the template system in 4.2. Here are the fix I found:

  • In the the oopsmore.webpermissions.tmpl I have now:
%TMPL:INCLUDE{"oopsmore"}%
%TMPL:INCLUDE{"oopsmoretopicacls"}%

%TMPL:DEF{"message"}%
%TMPL:P{"oopsmoretopicacls"}%
%TMPL:P{"revision"}%
%TMPL:P{"compare"}%
%TMPL:P{"settings"}%
%TMPL:P{"delete"}%
%TMPL:P{"rename"}%
%TMPL:P{"setparent"}%
%TMPL:P{"childtopics"}%
%TMPL:P{"backlinks"}%
%TMPL:END%

instead of:

%TMPL:INCLUDE{"oopsmore.pattern"}%
%TMPL:INCLUDE{"oopsmoretopicacls"}%

%TMPL:DEF{"message"}%
%TMPL:P{"oopsmoretopicacls"}%
%TMPL:P{"oopsmoresettings"}%
%TMPL:P{"oopsmorerename"}%
%TMPL:P{"oopsmoredelete"}%
%TMPL:P{"oopsmoresetparent"}%
%TMPL:P{"oopsmorechildtopics"}%
%TMPL:P{"oopsmorerevision"}%
%TMPL:P{"oopsmorecompare"}%
%TMPL:P{"oopsmorebacklinks"}%
%TMPL:END%

  • In the oopsmoretopicacls.tmpl I made some cosmetic changes so that it looks like the default one. So I have now:
%TMPL:DEF{"oopsmoretopicacls"}%
---+++ %MAKETEXT{"Edit topic ACLs"}%
   * %MAKETEXT{"<a href='[_1]' rel='nofollow'>Edit ACLs</a> for this topic" args="%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%?template=topicacls"}%%TMPL:END%

instead of:

%TMPL:DEF{"oopsmoretopicacls"}%
---+++++ %ICON{"edittopic"}% *%MAKETEXT{"Edit topic ACLs"}%*
   * %MAKETEXT{"<a href='[_1]' rel='nofollow'>Edit ACLs</a> for this topic" args="%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%?template=topicacls"}%%TMPL:END%

Hope this will help you figure out what I mean ;-). Regards, Eric

-- TWiki:Main.EricCharikane - 29 Nov 2007

I think Kenneth maintains a list of plugins with broken templates in 4.2 somewhere, the list should be updated once this bug is fixed.

-- TWiki:Main.SteffenPoulsen - 29 Nov 2007

Move the summary to "Broken templates for Edit topic ACL in 4.2".

-- TWiki:Main.EricCharikane - 30 Nov 2007

I made a list of plugins with templates that needed to be checked because some of them had been found to be broken. Depending on what the templates in the plugins do many may very well be working.

The two I had reported as broken were fixed thanks to Arthur.

The symptom of this bug report sounds a lot like the ones that were fixed (the blank pages). So it is probably a similar cure that is needed. If this is the case then it is a rather large rewrite of the template that is required.

-- TWiki:Main.KennethLavrsen - 30 Nov 2007

Kenneth, I'm not sure about what you mean (my english) but fix suggested above works very fine for me. Eric.

-- TWiki:Main.EricCharikane - 30 Nov 2007

Ah, OK, you lost me because I didn't add those templates. It's WebPermissionsPlugin all right. Your template changes make sense to me. But does this break the templates for 4.1 and earlier?

CC

OK, added Eric's changes. Thanks, Eric!

CC

ItemTemplate
Summary Broken templates for Edit topic ACL in 4.2
ReportedBy TWiki:Main.EricCharikane
Codebase 4.2.0
SVN Range TWiki-4.3.0, Fri, 12 Oct 2007, build 15261
AppliesTo Extension
Component WebPermissionsPlugin
Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:15865 TWikirev:15866
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2007-12-04 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback