|
|||
Lines: 1-35 | Lines: 1-29 | ||
- | + | ! Plugin Include Use this ((wiki plugin)) to include the contents of a Wiki page inside another page (it ===must=== be a Wiki page located in the Wiki section of your Tiki, as other types of pages won't work yet!). This is a form of [http://www.google.com/search?q=wiki+transclusion|Wiki transclusion] | |
- | , |
+ | !! Parameters {pluginmanager plugin="include" !Example ExampleThis example transcludes (or includes) portions of the page ((Tiki2)) between the strings Authentication and OpenID. |
- | {CODE( ()} { }{INCLUDE} {BOX |
+ | ''This code:'' {CODE(colors="tiki") {include page="Tiki2" start="!!!# Authentication" stop="!!!!# OpenID"} |
{CODE} | {CODE} | ||
- | {BOX() {INCLUDE(page=>"TikiWiki 2. ", start=>"!!!# Authentication" , stop=>"!!!!# OpenID")}{ } BOX} =Params=- ||__Description__ |__Type__|__Use__|__Description__page|include |mandatory|the page to includestart|string|optional|the include will begin just after page first occurrence of the string in the pagestop|string|optional|the include will end just before the first occurrence of the string in the page || |
+ | ''Would produce on this site:'' |
- | You can not include a same page or a same page extract more than 5 times. , If you need to exceed 5 times you will have to modify the plugins and change the value of max_times. |
+ | {include page="Tiki2" start="!!!# Authentication" stop="!!!!# OpenID"} |
+ | {REMARKSBOX(type="warning" title="Partial inclusions")}'' -+start+- and -+stop+- must represent the entire line, not just a portion of a line.''{REMARKSBOX} | ||
+ | !! Limitations | ||
+ | You can not include a same page or a same page extract more than 5 times on one page. If you need to exceed 5 times you will have to modify the plugin and change the value of -+max_inclusions+- . Starting in Tiki 18.2, there is a parameter to do so. | ||
- | * (( * (( |
+ | !!Related pages {SORT() * ((PluginTransclude ) * (( )) * ( PluginIframe)) * (PluginIncludeTPL)) {SORT} |