Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1369

Velocity Question - document.getContent() - empty?

$
0
0

Hi,

I have a Velocity script direct in a page from where I want to do some scripting and access other pages. The script is executing and the Document Object doc is not empty. All the other outputs are working. But only getContent is always empty.
Any ideas?

   #set ($doc = $xwiki.getDocument("MySpace.MyPage"))
    <p>Document $page Syntax $doc.getSyntax() Space $doc.getSpace() Reference $doc.getDocumentReference()</p>
    #set ($content = $doc.getContent())
    <p>Dom:  $doc.getXDOM()</p>
    <p>Content: $content</p>

thx
Joesph

6 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1369

Trending Articles