You are here:
Foswiki
>
Applications Web
>
TopicType
>
TopicView
E
dit
A
ttach
Tags:
create new tag
,
view all tags
---++ Documentation %STARTSECTION{"documentation"}% A TopicView defines a view for a topic. By default WikiTopics are displayed using the installed skin and the templates (don't confuse with TopicTemplate being a content blueprint for newly created topics). The view (compare with the 'view' term from the Model-View-Control school) computes the appearance of a WikiTopic and its form data. A new view is assigned to a topic by setting the VIEW_TEMPLATE variable. For example the following will set th view to use the HiddenFormViewTemplate to hide the form table that is normally displayed below the wiki content. <pre> * Set <span></span>VIEW_TEMPLATE = HiddenFormView </pre> Note, that the =...Template= string is appended automatically by the Foswiki engine. Note also, that we use the <nop>TopicView type to mark even those views that are used during _editting_ a wiki topic and is assigned using something like <pre> * Set <span></span>EDIT_TEMPLATE = FormEdit </pre> As such the FormEditTemplate is not used during Foswiki's view operation but during edit. The template is then used to render the _view on the editor_ to be used. Edit templates either augment the normal Foswiki editor, or even implement a full substitute for its form data. %ENDSECTION{"documentation"}% ---++ Topics of type '%TOPIC%' %STARTINCLUDE%<!-- --> %DBCALL{"Applications.RenderSimpleTopicCreator" VALUE="...ViewTemplate" TYPE="%TOPIC%" TEMPLATE="Applications.%TOPIC%Template" FORM="Applications.ApplicationTopic" }% %DBCALL{"Applications.RenderTopicsOfType"}% %STOPINCLUDE%
TopicType
edit
TopicType
TopicType
,
DocuTopic
TopicTitle
TopicView
Inheritance
ApplicationTopic
Summary
Views and editors
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.