Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Looking to create a edit page macro

John OBrien February 26, 2015

Hi there,

My team is looking to create a user macro that throws a link onto a page that will allow you to edit the page regardless of how the page is being viewed (ie through a page include / or tabs).

The usage case for this macro is to allow pages to be edited even though they might be part of a large amount of pages tabbed together (currently using Navitabs for tabbing). This removes the need for someone to navigate to one of the tabbed pages first, then click edit.

The steps I could image needing to be done

  • Get current page id
  • link to https://domain/pages/editpage.action?pageID=<current page id>

If you have any suggestions please let me know! Thanks ahead of time!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2015

Try 

$content.getIdAsString()

for the current page ID bit (I'm rusty on user macros, I can't remember how to tack that into the url, but I'm sure you do!)

John OBrien February 27, 2015

Thanks for the tip that allowed me to figure out where the BIG LIST was!

## @param status:title=Link Text|type=string|required=true

<a href="https://domain/pages/editpage.action?pageId=$content.getIdAsString()">$paramstatus</a>

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 27, 2015

Oh yes, that library, it is rather handy

TAGS
AUG Leaders

Atlassian Community Events