Bullet and Heading Template

This has bee adapted from the Brainstorm Finegrain definition - thanks very much for the seed - really good!

%TMPL:DEF{PROMPT:BulletH1H2B1B2}%<ul><li><input type="text" name="comment" size=50>
<input %DISABLED% type="radio" name="BulletHeadingText" value="---++ " />H1
<input %DISABLED% type="radio" name="BulletHeadingText" value="---+++ " />H2
<input %DISABLED% type="radio" name="BulletHeadingText" checked="checked" value="   * " />B1
<input %DISABLED% type="radio" name="BulletHeadingText" value="      * " />B2
<input %DISABLED% type="submit" value="Add Bullet/Heading" /></li></ul>%TMPL:END%

%TMPL:DEF{OUTPUT:BulletH1H2B1B2}%%POS:BEFORE%%URLPARAM{"BulletHeadingText"}%%URLPARAM{"comment"}% 
%TMPL:END%

List Changing Supporting Form - Adding an Item

%TMPL:DEF{PROMPT:ListAddItem}%%TMPL:P{returntotopicwbaseweb}%
Item to Add: <input %DISABLED% name="TextInput" value="" >
<input %DISABLED% type="submit" value="Add Item To List" />
%TMPL:END%  

%TMPL:DEF{OUTPUT:ListAddItem}%, %URLPARAM{"TextInput"}%
%TMPL:END%

List Changing Supporting Form - Adding me to the list

%TMPL:DEF{PROMPT:ListAddMeToIt}%%TMPL:P{returntotopicwbaseweb}%
<input %DISABLED% type="submit" value="Put Me on the List" />
%TMPL:END%  

%TMPL:DEF{OUTPUT:ListAddMeToIt}%, %WIKINAME%
%TMPL:END%

List Changing Supporting Form - Removing an Item

%TMPL:DEF{PROMPT:ListRemoveItem}%%TMPL:P{returntotopicwbaseweb}%
Item to Add: <input %DISABLED% name="TextInput" value="" >
<input %DISABLED% type="submit" value="Add To List Item" />
%TMPL:END%  

%TMPL:DEF{OUTPUT:ListAddItem}%, %URLPARAM{"TextInput"}%
%TMPL:END%

Save Wiki Page

The code behind a button which the User pushes to save the current wiki page to a location.

I wrote this with the LeftBar? in mind so the button is in the users LeftBar? and when they push the button, the current wiki page is saved toa location which I have set to be in the users LeftBar? . See MyLeftBar for more details.
%TMPL:DEF{returntotopicwbaseweb}%
<input type="hidden" name="redirectto" value="%BASEWEB%.%BASETOPIC%" /> 
%TMPL:END%
  
%TMPL:DEF{PROMPT:SaveTopic}%%TMPL:P{returntotopicwbaseweb}%
<input %DISABLED% type="submit" value="Save Page" />
%TMPL:END%  
%TMPL:DEF{OUTPUT:SaveTopic}%%POS:BEFORE%   * %URLPARAM{"redirectto"}% 
%TMPL:END% 

-- NeilGood - 22 Feb 2009

Text to Add to End of Topic to turn off WSIWYG Editor

%TMPL:DEF{PROMPT:AddWsiwygTurnOffTextToATopic}%%TMPL:P{returntotopicwbaseweb}%<input %DISABLED% type="submit" value="%AltButtonMsg|Add WSIWYG Turn Off Code%" alt="Click to add WSIWYG Turn Off Code to the current Topic" />%TMPL:END%

%TMPL:DEF{OUTPUT:AddWsiwygTurnOffTextToATopic}%%POS:BOTTOM%
<!--
Turn off WSIWYG Editor for this topic

   * Set TINYMCEPLUGIN_DISABLE = 1

-=-=- %WIKIUSERNAME% - %GMTIME% 
-->
%TMPL:END%

-- NeilGood - 26 Mar 2009

Add an 'Acknowledgement' flag to a user page

%TMPL:DEF{PROMPT:addacknowledgementflagtouserpage}%
%TMPL:P{returntotopicwbaseweb}%<input %DISABLED% type="submit" value="%AltButtonMsg|Acknowledge%" alt="Click to acknowledge" />%TMPL:END%
%TMPL:DEF{OUTPUT:addacknowledgementflagtouserpage}%%POS:BOTTOM%

   * Acknowledgment flag

%TMPL:END%

-- SimonLatham - 15 May 2009


This topic: Sandbox > UserCommentsTemplate
Topic revision: 15 May 2009, SimonLatham
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads