{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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

344 views 20 10
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