{PAGENAMEE} equivlant

I'm looking for an equivalent to mediawiki's "{PAGENAMEE}"  (yes with two EEs.)


I need a link when clicked will open the users email client and prepopulate the subject with the page's name. This link will be embedded on every page so it needs to automatically pull the page name without the rest of the URL.

The following works perfectly, however I need to swap out XXX with the page's name. 










2 answers

Take a look at this answer, https://answers.atlassian.com/questions/11462878

It does explain how to create a user macro to make a custom link (you need to extend it to be parametrised, to be more reusable, like to allow setting own subject or email, when a user uses this macro)

More details on parameters: https://confluence.atlassian.com/display/DOC/Example+User+Macro+-+Colour+and+Size

Quick prototype for user macro:

## Macro title: userLink
## Macro has a body: N
## This is an example macro
## @param Email:title=Email|type=string|required=true|desc=Email address
## @param Subject:title=Subject|type=string|required=true|desc=Email subject
## @param Body:title=Body|type=string|required=true|desc=Email body
## @param Caption:title=Caption|type=string|required=true|desc=Link caption

<a href="mailto:$paramEmail?Subject=$paramSubject${content.title}&body=$paramBody${content.title}">$paramCaption</a>



0 votes
Boris Berenberg Community Champion Dec 19, 2014

This is not possible out of the box. You may be able to do this using a User Macro: https://confluence.atlassian.com/display/DOC/Writing+User+Macros

If not, you will have to create a Macro plugin: https://developer.atlassian.com/display/CONFDEV/Macro+Module

Thanks for the quick reply, though I must admit I'm a little disappointed. I guess I'll have to look into custom macros :-/ Any chance this functionality can be included in future releases?

Boris Berenberg Community Champion Dec 19, 2014

It could be, but there are no plans to do this as far as I know. I would look into https://jira.atlassian.com/ and if you can't find an existing feature request, you should file one.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
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