Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Afp
Afp0304
Afp0405
Afp0506
Afp0607
AfpBadCopy
AfscheidDoaitseSwierstra
Alexey
Aop
Apa
Apa0506
ArieMiddelkoop
Atze
B3so
Bachelor
Bookmarks
Buildfarm
CSMaster
Cco
Center
DTP
Dos
Ehc
Eifl
Esdx
ExamCommitteeSciences
ExamenCommissie
FOO
FP
FPDag2012
FPLC
Fosa
GP
GamesAndVirtualWorlds
Gavw
GenericProgramming
Gnp
Gw
HUT
Hage
HaskellResources
Helium
HerzieningBachelorInformatica
Hpc
Hpc02
IFIP21
IFL
IFL2010
IPA2013
IS
ISS
Ipt
Ist
MSO
MTCH
Main
Martin
Master
Intern
MasterProgramComputingScience
Merijn
MethodEngineering
Mso1011
No
OWMT
OacBaICA
OacBaIKU
OacMastersCs
Odc
ProgrammingEnvironments
PrologJCU
Proxima
klad
Pt
Pt03
Pt04
Pv
Sandbox
SemanticWeb
Sgc
Sgc04
Spm
Stc
StrictnessAnalysisJFC
Students
Swa
Swe
Swe03
Swe04
Swe05
Swe0607
Sws
TC
TFP2014
TS
TS0506
TWiki
Tbpa
Techno
TechnologyForTeaching
Toetsing
TomVanDerWeide
Top
Trace
Trash
Ts
UHC
USCS
USCS2009
USCS2010
USCS2011
Uhc
Vermaas
Visser
VrouwenEnICT
WP
WebFunctions
WiskundeBDeficientie
WorkingConferenceProgramTransformation
Xagp
ZZZ
Center
Home
Courses
People
Projects
Page
Edit Page
Rename Page
Attach File
Printable
Wiki Source
More ...
Web
Recent Changes
Notify Service
News
?
Page Index
Search
More ...
Wiki
About TWiki
Text Formatting
Registration
Change Password
Reset Password
Users
Groups
Log In
or
Register
Var INCLUDE
TWiki
#VarINCLUDE ---+++ INCLUDE{"page"} -- include other topic or web page * Syntax: =%<nop>INCLUDE{"page" ...}%= * Supported parameters: | *Parameter:* | *Description:* | *Default:* | | ="SomeTopic"= | The name of a topic located in the current web, i.e. =%<nop>INCLUDE{"WebNotify"}%= | | | ="Web.Topic"= | A topic in another web, i.e. =%<nop>INCLUDE{"%TWIKIWEB%.SiteMap"}%= | | | ="http://..."= | A full qualified URL, i.e. =%<nop>INCLUDE{"http://twiki.org:80/index.html"}%=. Supported content types are =text/html= and =text/plain=. <br /> %I% if the URL resolves to an attachment file on the server this will _automatically_ translate to a server-side include. | | | =pattern="..."= |Include a subset of a topic or a web page. Specify a RegularExpression that scans from start (='^'=) to end and contains the text you want to keep in parenthesis, e.g., =pattern="^.*?(from here.*?to here).*"=. IncludeTopicsAndWebPages has more. | none | | =rev="2"= | Include a previous topic revision; N/A for URLs | top revision | | =raw="on"= | When a page is included, normally %WIKITOOLNAME% will process it, doing the following: 1) Alter relative links to point back to originating host, 2) Remove some basic HTML tags (html, head, body, script) and finally 3) Remove newlines from HTML tags spanning multiple lines. If you prefer to include _exactly_ what is in the source of the originating page set this to =on=. %BR% =raw="on"= is short for =disableremoveheaders="on"=, =disableremovescript="on"=, =disableremovebody="on"=, =disablecompresstags="on"= and =disablerewriteurls="on"=. | disabled | | =literal="on"= | While using the =raw= option will indeed include the raw content, the included content will still be processed and rendered like regular topic content. To disable parsing of the included content, set the =literal= option to ="on"=. | disabled | | =disableremoveheaders="on"= | Bypass stripping headers from included HTML (everything until first =</head>= tag) | disabled | | =disableremovescript="on"= | Bypass stripping all =<script>= tags from included HTML | disabled | | =disableremovebody="on"= | Bypass stripping the =</body>= tag and everything around over and below it| disabled | | =disablecompresstags="on"= | Bypass replacing newlines in HTML tags with spaces. This compression step rewrites unmatched <'s into =&lt;= entities unless bypassed | disabled | | =disablerewriteurls="on"= | Bypass rewriting relative URLs into absolute ones | disabled | | =warn="off"= | Warn if topic include fails: Fail silently (if =off=); output default warning (if set to =on=); else, output specific text (use =$topic= for topic name) | =%<nop>INCLUDEWARNING%= [[TWikiPreferences][preferences]] setting | | =section="name"= | Includes only the specified named section, as defined in the included topic by the [[#VarSTARTSECTION][STARTSECTION]] and [[#VarENDSECTION][ENDSECTION]] variables. Nothing is shown if the named section does not exists. | | | =PARONE="val 1"%BR% PARTWO="val 2"= | Any other parameter will be defined as a variable within the scope of the included topic. The example parameters on the left will result in =%<nop>PARONE%= and =%<nop>PARTWO%= being defined within the included topic. | | * __Note:__ !JavaScript in included webpages is filtered out as a security precaution per default (disable filter with =disableremovescript= parameter) * Examples: See IncludeTopicsAndWebPages * Related: [[#VarBASETOPIC][BASETOPIC]], [[#VarBASEWEB][BASEWEB]], [[#VarINCLUDINGTOPIC][INCLUDINGTOPIC]], [[#VarINCLUDINGWEB][INCLUDINGWEB]], [[#VarSTARTINCLUDE][STARTINCLUDE]], [[#VarSTOPINCLUDE][STOPINCLUDE]], [[#VarSTARTSECTION][STARTSECTION]], [[#VarENDSECTION][ENDSECTION]]