We are using a custom layout for our Confluence 3.5.13 site, and are using the Global Theme. We recently added the DOC space to include the local 3.5 Confluence Documentation as part of our Confluence site. We would like to apply the custom layout to the DOC space but are unable to get it to work with the Documentation Theme in this space. We have tried to create a custom layout for the space but it is not recognizing the page tree. I've read the user community posts and the Atlassian documentation but haven't found a solution to our problem. In our code, it calls it this way:
#includePage($helper.spaceKey "TreeNavigation") </div>
but we see a Page Not Found error instead of the tree navigation for the space. I've read related posts but have not found a solution to this issue. Any ideas how to apply our custom layout to the documentation theme in this space?
I'm was just having the same problem, and think I worked it out.
in the "Main Layout" decorator (includes/main.vnd) then I always get a "Page not found" error.
If i move the same line of code into the "Page Layout" decorator (decorators/page.vmd) then it will work.
I was banging my head against the wall, and then as I was writing a 'me too' reply to this post, I tried replacing the line of code with this, and it worked:
I tried this as well. I found that this as well as using #includePage($spaceKey "TreeNavigation") works for main.vmd. However, while I can see the page tree being displayed, it can't seem to find any of the pages (i.e. it displays a empty page tree).
Update: If I include a pagetree in the page, the pagetree in main.vmd displays the pages correctly. Taking the pagetree withing the page away and the pagetree in main.vmd displays an empty pagetree again... weird
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs