Can you globally replace a page name in multi-excerpt macro?

We'd like to use the multi-excerpt plugin macro to extract information from user forms and include it on formatted pages. The formatted pages could include dozens of excerpts, and the user form would be based on a template, so the page names would be created when the template is instantiated. Because the MEP macro has hard-coded page names, we need a way to globally replace the template's page name with the actual page names set by the user. Does anyone have any suggestions for how to do this? (We are using Confluence 5.1.2.)

We initially wanted to use the Scaffolding plugin, but we need to include JIRA macros and other types of content in the input forms, and Scaffolding has too many limitations and quirks. The multi-excerpt macro works perfectly for our purposes, except for the literal page name. (Replacing it manually for dozens of excerpts is impractical.) We were hoping there was a way to say reference a variable that referred to the page name that we could reference in the macro, instead of a literal value.

Although we realize our particular use for the macro isn't typical, I think a global replace feature would be useful for everyone, given that if someone changes the name of the excerpt page, the macro no longer works.

1 answer

1 accepted

0 votes
Accepted answer

It looks like the Source Editor plugin, with its global search and replace feature, should solve this problem.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

441 views 8 26
Read article

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