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.
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.