Loading...
 
Features / Usability

Features / Usability


include portions of page in another

posts: 3665 United States

Is it possible to include the content of a wiki page in another?

For example, I have the page: tiki-index.php?page=FooBar

that has a the text: Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

I want to include that text as a custom footer in my articles. How can I include the text from the wiki page FooBar ?

I'm thinking along the line of adding an include in the tiki-view_articles.tpl template, something like {include file="tiki-index.php?page=FooBar"} but I only want the wiki page text — not all the other stuff (left column, right column, etc.)

I know the include statement will work fine for static file (i.e., {include file="FooBar.txt"} ), but I need the text to be a wiki that can be changed on the fly.

Does this make sense? Is it possible?

posts: 2881 United Kingdom

Hi

In your lib/wiki-plugins-dist/ folder is a INCLUDE plugin, use it with extreme caution if your site has more than yourself editing it.

INCLUDE does not respect page permissions, so private pages can be included and be viewed.

--
Damian
Damosoft - TikiWiki Hosting/Development Services

posts: 3665 United States

Yes, I saw that, but it only seems to work when the {INCLUDE} statement is placed in a wiki. I want to put the {INCLUDE} on a template, which doesn't seem to work. sad

Is there a way to use the {INCLUDE} in a template?

posts: 3665 United States
Thanks for the pointer.... it looks like include_php is close, but I don't want to include the full wiki page (navigation, et. al.) — just the text. neutral

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting