| Include Topics and Web Pages Using %INCLUDE{...}% Variable
Use the %INCLUDE{...}% variable to embed the content of another topic or web page inside a TWiki topic. The whole content or only parts of a page can be included. If needed, set a proxy server in TWikiPreferences. |
|
The TITLE="" and MESSAGE="" parameters are passed into the include. Using this approach, you can create a library of boxes in the Main web, such as Main.NoteBox, Main.InfoBox. |
|
< < | Related Topics: VarINCLUDE, UserDocumentationCategory |
> > | 6. Create a Widget Library
You can create a library of GUI widgets using a topic with named sections:
- Create a Main.WidgetLibrary topic
- Create widgets in that topic, such as alert boxes, submit forms, queries, etc. Widgets are defined as named sections and may process parameters. For example, above alert box can be a widget enclosed in
%STARTSECTION{AlertBox}% ... %ENDSECTION{AlertBox}% (instead of the %STOPINCLUDE% ... %STOPINCLUDE% )
- Place a widget in any topic. For example, to use the alert box widget write:
%INCLUDE{ "Main.WidgetLibrary" section="AlertBox" TITLE="Alert" MESSAGE="The sky is the limit!" }%
In essence, you are building a library of functions with parameters that people can use. Use your imagination, the sky is the limit!
Related Topics: VarINCLUDE, VarSTARTSECTION, VarENDSECTION, UserDocumentationCategory
-- Contributors: TWiki:Main/PeterThoeny, TWiki:Main/KennethLavrsen |
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback Note: Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.IncludeTopicsAndWebPages.