• Community
  • Questions
  • Content blueprint has no ContentTemplateRef with key: simplebp-template2

Content blueprint has no ContentTemplateRef with key: simplebp-template2 Edited

I'm trying to follow the tutorials writing a blueprint for confluence ( 5.10.7 )

But i got stuck at  Write an advanced blueprint plugin
at step 1: Choosing between templates.

 when i try to create a page from the second template I get the error:

We can't create that blueprint right now.
Content blueprint has no ContentTemplateRef with key: simplebp-template2

It seems like the reference between the

<!-- Template for Blueprint -->
<content-template key="simplebp-template" template-title-key="my.blueprint.title">
<resource name="template" type="download" location="/templates/mytemplate.xml" />

<!-- Second Template for Blueprint -->
<content-template key="simplebp-template2" template-title-key="my.blueprint.title2">
<resource name="template" type="download" location="/templates/mytemplate2.xml" />

in the atlassian-plugin.xml and the


		<option value="simplebp-template2">{getText('my.blueprint.title2')}</option>

in the simplebp.soy

I think the reference between these two doesn't work...

When i change the value (simplebp-template2) of the second template in the soy file to simplebp-template it will create the first template.





3 answers

This was a problem for me as well - until I cleaned out my folder and removed the baggage from previous builds. It worked beautifully once things were cleaned up a bit.


Try this:

clean the confluence server folder periodically
Stop it by Ctrl+C
Make sure that plugin java process exited. In linux: ps -ef | grep java or through Task Manager in windows. Kill it if needed.
in project folder run: atlas-clean
launch again atlas-run or atlas-debug

Found the solution: Put the <content-template>s before their blueprint reference, like so:


<!-- Templates -->
<content-template key="template_version1" template-title-key="template_version1.title">
<resource name="template" type="download" location="/templates/version_1.xml" />

<content-template key="template_version2" template-title-key="template_version2.title">
<resource name="template" type="download" location="/templates/version_2.xml" />

<!-- Blueprint -->
<blueprint key="blp" index-key="indx">
<content-template ref="template_version1" />
<content-template ref="template_version2" />

I got stuck at the same tutorial. Nicolas' solution wasn't applicable since the <content-template>s were already before the <blueprint>.

A colleague advised me to create a standalone confluence instance with atlas-run-standalone and use atlas-cli instead of QuickReload even though it's deprecated. That did the trick for me without changing anything in my files. I'm not sure what exactly the problem was so this is more of a workaround, but it works for me...

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

168 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot