Insert image placeholder in template

According to documentation and other questions, it is not possible to attach an image (or other file) to a template but only to link to a resource that exist in another page.

This behaviour does not fulfill my use case where each new page created with the template needs to contain his own set of attachments.

Now, while it is not at issue (actually the desired behaviour) to attach the required files to the new page after creation from template, I would like to save the user the burden of editing the new page and inserting the images in the right location.

I would like to define in the template where which attachement shall be shown so that the user needs only to create the page with template and drag-and-drop the attachements. (Prerequisite would be, of course, that the attached files have exactly the same name as used in the template).

Is there a way to achieve this? How?

1 answer

0 vote

You can create a page on your confluence space where you put all the attachments that will be useful for your templates. (you can even hide this page by moving it on the top of your homepage while in "Reorder page")

Then when you create a template, go on "insert image", then select "search on other pages" and type the name of the image required. the image will be displayed as if it was attached and directly on your template. This is only in order to not host one hundred time the same image if you create one hundred pages based on this template.

Once you create a page base on this template, you can move the image everywhere you want on the page. You can even delete it if you need. If the image is deleted in the template it's okay.  

However, if the image is deleted in the source page, it will be deleted everywhere. But the good point is that if for example if you want to modify the image, you can just upload a new image with the same name on the source page and it will be replaced everywhere. 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

967 views 23 12
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