Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

{PAGENAMEE} equivlant

Michael Garito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2014

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

1 vote
Alex Medved _ConfiForms_
Community Champion
December 19, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 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

Michael Garito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 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
TAGS
AUG Leaders

Atlassian Community Events