Hi Vladimir,
do you want to retrieve content from both the page and the attached object
or only content from the attached object?
If you're trying to retrieve content from only the attached object, you can
use something like :
#set($mydoc = $xwiki.getDocument($SpaceName.MyDocument)) ## here you should
input the full name of the document where the object is stored #set($object
= $mydoc.getObject("SpaceName.ObjectClass")) ## in your case this would be
"
XWiki.PersonClass"
$mydoc.getValue('PropertyName', $object) ## here you should replace
PropertyName with the name (NOT the pretty name) of the property value
you're trying to access.
Hope this helps,
Guillaume
On Sun, Oct 12, 2008 at 10:53 AM, ladar <riha.vladimir(a)gmail.com> wrote:
Thanks, but it is not working. With this method I get hmtl code, but better
than nothing :-)
--
View this message in context:
http://n2.nabble.com/How-to-get-%22real%22-content-of-wiki-page-in-plugin-A…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://blog.xwiki.com/