11 Oct
2008
11 Oct
'08
11:21 p.m.
ladar wrote:
Hello, I'm trying to work with the content of wiki page in my plugin Api. I can access the content through method getContent() called with XWikiDocument. However I have an object added to the page and I'm using
#includeForm("XWiki.PersonClassSheet")
and this is the problem, because with method getContent() I get literally "#includeForm("XWiki.PersonClassSheet")"... Is there any way to get exactly what I see on the page? For example instead of
#includeForm("XWiki.PersonClassSheet")
I want to see "John Smith" (or whatever I will define in the ClassSheet)?
Try XWikiDocument.getRenderedContent(XWikiContext). -- Sergiu Dumitriu http://purl.org/net/sergiu/