This question about Authentication or Authorisation: Answered

Howto make an admin-button to quickly set Meta Preferences like ALLOWTOPICCHANGE

Hi there!

I just faild on an seemingly simple task. I just wanted to add a link/button to the viewtopicactionbuttons.tmpl or where ever to quickly set/un-set the ALLOWTOPICCHANCE to AdminGroup. Of course, this link should only be visible to members of the AdminGroup.

I really tried, but i don't get the concept how to read/set meta in a template. Can somebody help me with this please?

Kind regards,

-- EnrikGuenter - 29 Nov 2010

Hi Enrik,

Sadly, there's no nice way to do this in Foswiki 1.1 without a plugin.

MichaelDaum's Extensions.SetVariablePlugin should do the job.

This is untested, but reading the documentation, it seems you should do something like this:

<form action="%SCRIPTURLPATH{"save"}%/%WEB%/%TOPIC%" method="post">
<input type="hidden" name="Set+ALLOWTOPICCHANGE" value="AdminGroup"/>
<input type="submit"/>
</form>

-- PaulHarvey - 13 Feb 2012

QuestionForm edit

Subject Authentication or Authorisation
Extension SetVariablePlugin
Version Foswiki 1.1.2
Status Answered
Related Topics
Topic revision: r2 - 13 Feb 2012, PaulHarvey
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