
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| 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. | ||||||||
| Line: 8 to 8 | ||||||||
| Syntax | ||||||||
| Changed: | ||||||||
| < < | %INCLUDE{"page" pattern="reg-exp"}% | |||||||
| > > | %INCLUDE{ "page" pattern="reg-exp" rev="1.2" }% | |||||||
| Changed: | ||||||||
| < < | 
 | |||||||
| > > | 
 | |||||||
| The nameless parameter specifies the page to include. It is 
 | ||||||||
| Changed: | ||||||||
| < < | 
 | |||||||
| > > | 
 | |||||||
| The pattern parameter is optional and allows you to extract some parts of a web page. Specify a RegularExpression that scans from start ( '^') to end and contains the text you want to keep in parenthesis, i.e.pattern="^.*?(from here.*?to here).*". You need to make sure that the integrity of a web page is not compromised, i.e. if you include a table make sure to include everything including the table end tag. | ||||||||
| Added: | ||||||||
| > > | 
 | |||||||
| Note: All text of a topic is included unless you specify %STARTINCLUDE%,%STOPINCLUDE%and/or a pattern parameter. | ||||||||
 
  Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.