Patch #1052

Wiki include macro: add ability to include pages from other projects

Added by W Snyder over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2008-04-13
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Wiki
Target version:0.7

Description

The below patches the wiki include macro to be able to include pages from any project.

Where I used this is I wanted my home page to include text from a wiki page, rather than text under Administrator welcome message. To do this, I simply made the below patch and set the welcome message to {{include(Home,myBaseProjectName)}}

wikiinc.patch Magnifier - Patch file (958 Bytes) W Snyder, 2008-04-13 17:36

Associated revisions

Revision 1350
Added by Jean-Philippe Lang over 9 years ago

Include macro can include a page of another project wiki using {{include(projectname:Foo)}} (#1052).

History

#1 Updated by Jean-Philippe Lang over 9 years ago

Good idea. Just a few comments:
  • I think we could use the following syntax in order to be consistent with wiki links: {{include(myBaseProjectName:Home)}}
  • Permission to view the included wiki page should be checked (the target projet may be private)

#2 Updated by Jean-Philippe Lang over 9 years ago

  • Category set to Wiki
  • Status changed from New to Closed
  • Target version set to 0.7

The previous changes are committed in r1350.

Also available in: Atom PDF