Can I set up a "page nesting" macro?

Hi guys!

I'm currently setting up some blueprints and face a problem i was not able to solve by myself so far:

The goal is to have a blueprint. Nothing fancy so far. But I want this blueprint to contain macros that create content from templates within that same page. Quite similar to the "create from template" macro, but I want the content not to be created in a separate page, rather in the same page the macro is in.

The blueprint is needed for product related pages that will be filled with content over time. So while a template makes sense here, I can't expect users to fill out the page at once.

 

Best Regards

2 answers

Bumping because I'm really desperate to find out..

I do not understand what you mean by "creating content in a separate page". As far as I understand the Create-from-Template-Macro there is always a new page created. What do I miss?

I see two scenarios: Either you want to create a new section within an existing page or you want to create a new page and the new content should show up in an existing page.

If you need the first, you just need a section / placeholder in the existing page that gets eventually filled. You could use the Section Macro for this (there is also a free version with limited features).

If you need the second, you could use transclusion mechanism. That is: create a page and then transclude parts of the document to show in the parent (or other) document. This might work with the Excerpt Macro / Excerpt Include Macro (I have not checked), but it would work with macros of the projectdoc Toolbox. See Transclusion Macro and Transclude Documents Macro for details.

There is probably a third scenario ... smile - if my answer is not helpful to you, I'd like to ask you to provide more details about your use case.

Please note that the projectdoc Toolbox is a commercial add-on and I am one of its authors.

Thank you for your answer.

I am "just" a space administrator and unfortunately not able to install additional plug-ins. I would need a confluence stock macro to solve my issue. Here is some more information:

Yes, the create-from-template macro always creates an additional page. And that is exactly what I don't want to happen.

I basically need a macro that enables users to create additional content based on a template in the same page the macro is in.

Kind of like a create-from-template macro that puts the content in the parent page.

I hope I was able to clear things up a bit. I'm not a native speaker and am trying my best here smile

Thank you for your explanation! Rereading your first question I do not see why I did not understand it in first place ... (I am not a native speaker either wink). Now I understand what you want to achieve.

Unfortunately I don't know of such a macro.

Maybe you could define user macros where users add parameters and the macro renders the content based on the user's input. Unfortunately you would need system administrator permissions. Following this suggestion the macro controls the structure and the user the content. This may work for some use cases, but certainly not for all.  But note that I have not used user macros before by myself (it is easier for me to create add-ons).

Or you give the transclusion approach with the excerpt macros a try ... but this implies subpages and I'm not sure if the excerpt macros can handle content that is not yet existing.

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 ...

685 views 21 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