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

This widget could not be displayed.
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.

This widget could not be displayed.

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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

289 views 2 4
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