You are here:
Foswiki
>
Applications Web
>
TopicType
>
TopicFunction
>
RenderWikiApplicationFactory
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%TOC{depth="2"}% ---++ Documentation %STARTSECTION{"documentation"}% This is used to create a new WikiApplication %ENDSECTION{"documentation"}% ---++ Implementation <verbatim class="tml"> %STARTINCLUDE%<!-- wikiapplicationfactory --> %TWISTY{link="%BUTTON{"New <nop>WikiApplication" icon="add"}%%CLEAR%" mode="div"}% <form id="newWikiAppForm" name="admin" action="%SCRIPTURLPATH{manage}%/%BASEWEB%/%HOMETOPIC%" method="post""> <input name="action" type="hidden" value="createweb" /> <input type="hidden" name="baseweb" value="_WikiApplicationTemplate" /> <input type="hidden" name="webbgcolor" value="#D0D0D0" size="16" /> <input name="newtopic" type="hidden" value="" /> <input type="submit" style="display:none;" /> <div class="foswikiFormSteps"> <div class="foswikiFormStep"> <h3>Name:</h3> <input class="foswikiInputField" id="newweb" name="newweb" type="text" value="" size="50" /> <div class="foswikiFormDescription"> <noautolink> %MAKETEXT{"This is the name of the web that will hold the wiki application. It will become a subweb of the Applications web. Example values: MyCompanyApp, TestApp"}% </noautolink> </div> </div> <div class="foswikiFormStep"> <h3>Description:</h3> <input class="foswikiInputField" type="text" name="WEBSUMMARY" value="" size="50" /> <div class="foswikiFormDescription"> <noautolink> %MAKETEXT{"Enter a short description what this wiki app is about. It will be stored in the WebPreferences of your newly created application web."}% </noautolink> </div> </div> <div class="foswikiFormStep foswikiFormButtons foswikiFormLast"> %BUTTON{"%MAKETEXT{"Submit"}%" type="submit" icon="tick"}% %CLEAR% </div> </div> </form> %ENDTWISTY% %ADDTOZONE{"script" tag="WW:NEWWEB" topic="%WEB%.%TOPIC%" section="init" requires="JQUERYPLUGIN"}% <!-- //wikiapplicationfactory-->%STOPINCLUDE% </verbatim> ---++ !JavaScript initialisation <verbatim class="tml"> %STARTSECTION{"init"}%<literal> <script type='text/javascript'> jQuery(function($) { $('#newWikiAppForm').bind('submit', function() { var newweb = $('#newweb').val(); if (!newweb.match(/^Applications\./)) { newweb = 'Applications.'+newweb; $('#newweb').val(newweb); } if(typeof(foswikiStrikeOne) == 'function') { foswikiStrikeOne(this); } }); }); </script> </literal>%ENDSECTION{"init"}% </verbatim> ---++ Test %DBCALL{"%TOPIC%"}% %DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright © 2006-2013 Michael Daum http://michaeldaumconsulting.com %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
ApplicationTopic
edit
TopicType
DocuTopic
,
TopicFunction
TopicTitle
Summary
Renders a form to create a new
WikiApplication
WikiApplication
WikiWorkbench
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 23 Dec 2012,
ProjectContributor
Applications
Log In
or
Register
Tools
TopicTypes
DataForms
DataFormAttributes
TopicTemplates
TopicViews
TopicFunctions
Webs
Applications
ClassificationApp
Extensions
Main
System
Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.