%META:TOPICINFO{author="TWikiContributor" date="1185612231" format="1.1" reprev="1.12" version="$Rev$"}% %META:TOPICPARENT{}% ---+!! Function: %TOPIC% %FORMFIELD{"Summary"}% %TOC{depth="2"}% ---++ Documentation %STARTSECTION{name="documentation" type="section"}% This is a tool to add a topic based application, or part of it to another web. This is done by creating a TopicStub that points back to the implementation. For example, to add a new TopicType to web, you create a TopicStub that points back to the implementation of that TopicType. This function is also used to create topic-based ApplicationFactory. The function will display a small input form to specify the web where the TopicStub is to be created. ---+++++ Parameters * TEXT: label of the input field, defaults to "Install BASETOPIC in" * NAME: name of the topic to be created, defaults to BASETOPIC * SOURCE: used to specify the TopicStub's target to be created, defaults to BASEWEB.BASETOPIC * PARENT: topicparent of the new topic, defaults to HOMETOPIC * TEMPLATE: TopicTemplate used to create this topic, defaults to Applications.TopicStubTemplate * FORM: TWikiForm used for this topic, defaults to Applications.TopicStub * TYPE: type of the new topic, defaults to TopicStub * EXTRA: extra stuff to be send during =save= %ENDSECTION{name="documentation" type="section"}% ---++ Implementation %STARTINCLUDE%
%IFDEFINED{"%EXTRA%"}%
%IFDEFINED{"%TEXT%" then="%TEXT%" else="Install %BASETOPIC% in"}%
%STOPINCLUDE%
---++ Test
%DBCALL{"%TOPIC%"}%
%DBCALL{"Applications.RenderFunctionCallers"}% ---++ Copyright
© 2006-2007 Michael Daum http://wikiring.de %DBCALL{"Applications.GnuGeneralPublicLicense" section="notice"}%
%META:FORM{name="Applications.ApplicationTopic"}% %META:FIELD{name="TopicType" attributes="" title="TopicType" value="DocuTopic, TopicFunction"}% %META:FIELD{name="Summary" attributes="" title="Summary" value="Render a simple factory to deploy a topic in another web"}% %META:FIELD{name="TWikiApplication" attributes="" title="TWikiApplication" value="TWikiWorkbench"}%