Include macro does not work in templates

I have a template that uses the include macro.

When the template is used, the include macro does not render.

The following error message is displayed: Unable to render {include} The included page could not be found.

The page name I am using is correct. I have tried using the space abbreviation in the page name also and this doesn't help.

If I take the same code out of the template and insert it into the page, then it works fine.

It seems to me that the include macro does not work proberly in the templates in Confluence 4.

I am using C v4.1.9.

Does anyone else have this problem?

Can anyone from Atlassian reproduce this issue?

3 answers

I just tried (with 4.0.4) and it works fine.

Can you copy your template code here?

Thanks Jonathan, we have just upgraded to Confluence 4.3 to test it out - this makes things a little different with the new template system.

I don't think there was anything special about my template or the page it was including.

I will repeat the problem and send through the details once we have reverted back to Confluence 4.1.9.

So the plot thickens ......... :)

If you create a page, then create a template which includes that page and then create a new page from the template, it works.

BUT

If you create a page, which in turn creates a child page using the "create-page" plugin, then if you try and use the include plugin on the child page, it throws an error as above.

Something is not registering properly in the create-page plugin I expect.

Anyone from Adaptavist wish to comment?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

35 views 0 2
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you