Action Button
Access
{{reader}}
Favourite Pages
{{pageEntry.pageName}}
Signed in as {{currentUser}} {{avatar}}
Sign Out
Sign In as Different User
{{currentUserExtraOptions}}
OpenForum
Extensions
ActionButton
A button that fires an
OpenForum GET action
Parameters
action = Action Name
text = Action button text
Usage:
[{ActionButton action="Rebuild" parameters="pageName=Home" text="Rebuild Wiki"}]
Rebuild Wiki
//OpenForum/Extensions/ActionButton/renderer.sjs
action = extension.getAttribute("action"); parameters = extension.getAttribute("parameters"); text = extension.getAttribute("text"); id = extension.getAttribute("id"); img = extension.getAttribute("img"); icon = extension.getAttribute("icon"); if(icon!=null) { img = "/OpenForum/Images/icons/png/"+icon+".png"; } if(img!=null) { var alt = ""; if(text!=null) { alt = text; } text = "
"; } var idHtml = ""; if(id!=null) idHtml = "id = '"+ id +"'"; if(parameters==null) { parameters = ""; } else { var parts = (""+parameters).split(","); parameters = ""; for(var part in parts) { if(parameters.length>0) parameters += ","; parameters += "\""+parts[part]+"\""; } } //return "
"+text+"
"; return "
"+text+"
";
An error has occurred.
{{OpenForum.errorMessage}}
See technical details
×
Error details.
{{OpenForum.error}}
×
{{OpenForum.alert.title}}
{{OpenForum.alert.message}}
×