Loading...
 
Skip to main content

History: PluginInclude

Comparing version 26 with version 50

Lines: 1-35Lines: 1-29
-!! Plugin Include
This ((Wiki Plugin)) can be used to include the contents of a Wiki page inside another page (it ===must=== be a Wiki page located in the Wiki section of your Tikiwiki, as other types of pages won't work yet!). This is a form of [http://www.google.com/search?q=wiki+transclusion|Wiki transclusion]
+! 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]
-!!! Install
__Starting in 2.
,
this plugin is bundled.__
+!! Parameters

{pluginmanager plugin="include"


!Example
ExampleThis example transcludes (or includes) portions of the page ((Tiki2))
between the strings Authentication and OpenID.
-!!! Usage
This example transcludes (or includes) portions of the page ((Tiki2)) between the strings Authenticaion and OpenID




{CODE(caption="Use the syntax" wrap="1" ishtml="1

)}
{

()}

{INCLUDE (page=>"TikiWiki 2.
" start="!!!# Authentication" stop="!!!!# OpenID"

}{INCLUDE}
{BOX
}
+''This code:''

{CODE(colors="tiki")


{include page="Tiki2" start="!!!# Authentication" stop="!!!!# OpenID"}
 {CODE} {CODE}
-Produces:

{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:''
--=Security=-

You can not include a same page or a same page extract more than 5 times.
(In tw <3.
,
you can not include the same page more than 5 times even if it is a different extract


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=-

* ((Wiki Plugins)


* ((Mods Type Wikiplugins))
+!!Related pages

{SORT()


* ((PluginTransclude

)
* ((

))

* (

PluginIframe))
*

(PluginIncludeTPL))
{SORT}

History

Information Version
Yves Kipondo 50
godbout fix "max_times" wrong parameter to correct "max_inclusions" 49
Roberto Kirschbaum max_inclusions parameters since 18.2, not 18.3 48
Marc Laporte http://sourceforge.net/p/tikiwiki/code/65897 47
luciash d' being 🧙 clarification 46
luciash d' being 🧙 45
Philippe Cloutier remove information for versions prior to 3 44
Philippe Cloutier fix REMARKSBOX type 43
lindon 42
lindon 41
lindon 40
E.W. Peter Jalajas reverted 39
E.W. Peter Jalajas added Also known as PluginPage {PAGE}? 38
lindon 37
WizarDave Added a note that the start and stop must be entire lines not portion of a line. I struggled with this for several hours before figuring it out. :) 36
Louis-Philippe Huberdeau Code Plugin modified by editor. 35
Carsten Aevermann 34
Bernard TREMBLAY misprint 32
lindon fix include 31
lindon 30
lindon 29
lindon 28
Marc Laporte doesn't work with Semantic Aliases 27
Marc Laporte 26
AdamChan Plugin modified by editor. 25
campbe13 24
campbe13 23
campbe13 22
KaiiaK 21
KaiiaK 20
KaiiaK 19
KaiiaK 17
Scot Wilcoxon 'end' is 'stop' in 2.* 16
lindon 15
Marc Laporte 14
sylvie 13
lindon 12
Xavier de Pedro 11
Gary Cunningham-Lee Plugin modified by editor. 10
Gary Cunningham-Lee Plugin modified by editor. 9
Marc Laporte 8
Marc Laporte wiki transclusion 7
mlpvolt security issue: does include check perms? 6
mlpvolt add download link to svn 5
mlpvolt 4
mlpvolt 3
Xavier de Pedro 2
system created from structure 1