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

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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events