The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Rename Link of Custom User Macro to Redirect to Home Page

randy zhu
August 24, 2017

I created a simple user macro that redirects to home page:

<a class="parent-page-link"  ref=#contentLink2($content.getParent() false false)
<style>
.parent-page-link {
  color: #FFFFFF !important;
  background: rgb(67,197,208);
  text-align: center;
  font-size: 10pt;
  }
  .parent-page-link:hover {
    background: rgb(62,182,192);
    }
    .parent-page-link .rwui_icon {
      color: #FFFFFF !important;
      }
  </style>

</a>

 

It works great but how do I change the text of the link?  Instead of saying "ParentPageName", I would like it to say "Home"

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
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 Champions.
August 24, 2017

Put some text in between <a> and </a>

But, your html is broken - the <a part is not terminated correctly.

randy zhu
August 25, 2017

thanks for your reply!

I wish it were that simple

unfortuantly the content link or calling the rest api somehow terminates the attribute

TAGS
AUG Leaders

Atlassian Community Events