{PAGENAMEE} equivlant

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

http://www.mediawiki.org/wiki/Help:Magic_words#URL_encoded_page_names

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. 

mailto:my-email@address.com?Subject=Feedback%20on%20XXX&body=We%20appreciate%20your%20feedback%20on%20XXX.

 

 

 

 

 

 

 

 

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

140 views 3 3
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