Page title in article content

Hello guys,

there I am again. :slight_smile: We managed to get the XWiki instance working. We would like to embed the page title into the content of an article. Is there a way to use a variable for this?

Thank you in advance.

Kind regards

Not exactly sure what you mean by “embed” but here you go:

Some content

Embedding the title here:

{{velocity}}
#set ($someDoc = $xwiki.getDocument('MySpace.MyPage'))
$someDoc.getRenderedTitle('plain/1.0')
{{/velocity}}

Hope it helps

Right I wanted to put the title of an article into the article itself. Could you kindly tell me where I can find this kind of information myself so that I don’t have to bother you with such questions? Thank you

You can find this at these places:

Hope it helps