Pass parameters between pages

Want to do basically add programatic logic to pages, based on passing parameters.

Say page 1 has a link to page to like http://.....page2?custom_param=value

Page 2 I want to get that parameter, and display only parts of the page that I want (basically hacking the macros include page and include excerpt to be more powerful). Would involve getting the parameter, and being able to do conditional logic as well.

Anyone know how? Seems like there were some questions asked in the forum but no answers.

If not, is there a way to write a custom macro to do parameter retrieval, and conditional display logic?

2 answers

0 votes
Davin Studer Community Champion Jun 14, 2016

Since you are on Confluence Cloud there is not much you can do. With the server version you could do this easily with a user macro.

How would you do it as a macro? Do you have sample code? What about conditional logic, if x then display y?

Thx so much!!

Davin Studer Community Champion Jun 14, 2016

Are you indeed using confluence cloud? If so you cannot do what you are asking. If you have the server version it is possible, but the cloud version is locked down.

0 votes

Are you writing an Atlassian Connect add-on? If so can you be more explicit in what you are trying to do?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

919 views 13 11
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