Contents
EmbedWikiPage
PURPOSE
This processor is used to embed a wiki page into the current wikipage.
It is possible to embed local pages as well as external wiki pages.
If a WikiName is detected the name is translated into a link to the original page.
On some circumstances a WikiName is not detected, see RESTRICTIONS.
The page is embedded temporary and you get at the end a link to edit the original page.
CALLING SEQUENCE
INPUTS
-site: the URL of the wiki where the page is on -name: the wikiname of the page
EXAMPLE
{ { { #!EmbedWikiPage -site http://moinmoin.wikiwikiweb.de:8000/ -name ProcessorMarket/sctable } } }
PROCEDURE
- Editing of an embedded page is always editing the original page.
wiki:, wiki:/ or ["HOWTO"] and normal WikiName page links are followed to it's original locations
- attachments are embedded as links
Please remove the version number from the routine name!
RESTRICTIONS
- at the moment it follows nearly all wiki links
I have a simple mechanism to detect wiki:, wiki:/ or ["HOWTO"] and normal WikiName pagelinks. At the moment I don't find WikiName which are inserted into tabulars and macros.
Later on it would be fine to use the icon of the page (favicon) to show where are the links from.
MODIFICATION
@copyright: 2004-09-26 by ReimarBauer EmbedWikiPage-1.2.3-1
2004-09-28: RB 1.2.3-2 WikiName is now supported (some cases are missing)
2004-09-28: RB 1.2.3-3 WikiName rules extended
DISCUSSION
NEED HELP to find WikiName in in some cases.
A processor is a thing that processes a part of a wiki page. This processor does no such thing. I think this is really a Macro. Note that processors will be deprecated with the next versions of moin. Try to adapt to the parser interface instead. -- OliverGraf 2004-09-28 07:11:55
You are right I will change this. -- ReimarBauer 2004-09-28 11:03:56
I tried first a macro but I got at the end some warnings
Traceback (most recent call last): File "/lib/python/MoinMoin/request.py", line 405, in run Page(query).send_page(self, count_hit=1) File "/lib/python/MoinMoin/Page.py", line 611, in send_page self.send_page_content(request, Parser, body) File "/lib/python/MoinMoin/Page.py", line 662, in send_page_content Parser(body, request).format(self.formatter) File "/lib/python/MoinMoin/parser/wiki.py", line 1033, in format formatted_line = self.scan(scan_re, line) # this also sets self.inhibit_p as side effect! File "/lib/python/MoinMoin/parser/wiki.py", line 876, in scan return ''.join(result) TypeError: sequence item 1: expected string, NoneType found