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

getParent() does not point to logical Parent

$
0
0

I have simillar problem as here getParentReference does not point to logical Parent but internally in xwiki. I have a template provider which creates nested pages. My simple code:

{{velocity}}
#set($parent = $doc.getParent())
$parent
{{/velocity}}

produce output:

Templates.NewTemplateTest.WebHome

The problem is that the subpage should point to its new parent, but instead, it points to the original parent in the templates folder.

Im working on 16.1.0.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1373

Trending Articles