Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

trackbackRdf Code showing up on pages

After a recent upgrade to 7.2.1, it was reported to me by one of our staff that the following is appearing at the bottom of the page:

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))

My research came up with:

Any ideas?

Thanks!

2 answers

1 accepted

3 votes
Answer accepted

Okay, for the next wayward traveller who stumbles upon this post:

Open the Confluence site with a user account that will have permissions to access Space Tools (you're on your own here to ascertain permissions).

Navigate to the Space you need to fix (which I think is the part I wasn't seeing in my research)

In the lower left hand corner open "Space Tools -> Look and Feel"

2020-01-30_11-26-57.jpg

Go to the Layout tab and if, like in my case, there is a an Edit option for the Page Layout:

2020-01-30_11-24-16.jpg

 

make a quick backup (copy to notepad or something) remove the line that begins with:

#trackbackRdf

...from it and save.

 

2020-01-30_11-34-23.jpg

This is how I fixed it for our space. Good luck.

Um, you do know that was the answer from the answers in the links you originally gave?

Consider this clarification.

0 votes

If you want to use the new user macro solution, it's admin -> create user macro -> give it a name and type, and literally have it do nothing in the result.

That helps if you've used the macro in pages rather than in the layout like the other two questioners had.

Hello Nic,

Confluence admin is a pretty small part of my responsibilities, so forgive me for not knowing what may seem obvious...

I created a macro (with no experience of knowledge of what they are for) but am still seeing the text on our site. There isn't a field called "result".

Here is a screen shot. Is there something I did incorrectly?

2020-01-30_9-31-22.jpg

 

Thanks!

I understand, I usually don't know how experienced someone might be so I try to write guides in simple English rather than Atlassian-speak.

In the screen you are in, where I've said "result" is (sort of) the "Template" field.  That contains the words you want to come out of a macro, but also the result of any code you've put in there.  The code is done in "velocity" and the result is generated when the template is rendered.

You can do stuff like

What time is it?#if ( $today == "Friday" )#then  Yay for beer#endD'oh!

and get

What time is it? D'oh!

except on Fridays when you'll see

What time is it? Yay for beer D'oh!

Anyway, the goal here is to return absolutely nothing.  You do need a template, but I think what you've got already is almost there.  I'd expect it (bear in mind I'm rusty on this) to now show # where the macro is used, instead of an error.  If that is the case, I'd change it to "## something", as that's a velocity comment, so nothing will render

Hello Nic,

There has been no changes at all. It was still the original:

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page)) 

that was on the page. Regardless of the Template field containing

#
##

or 

## something

Absolutely no change.

Should there be somewhere in the system where I can remove references to this macro instead of introducing a hack like this?

Do I need to restart? That's hard to do with a production system (and would seem like a silly thing to have to do) but thought I should ask.

Actually, answered my own question. It was in the Page Layout for the Confluence Space.

Hello @Nic Brough _Adaptavist_  ,

Thanks for the suggestion of creating a new "empty" user macro, but it does not work (the 'trackback' line is still visible). My user macro is set this way:

Macro Name: trackbackrdf

Macro Title: trackbackrdf

Macro Body Processing: Escaped / Unrendered / Rendered (3 have been tried)

Template:

## Macro title: My Macro
## Macro has a body: Y or N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

<br />

 

I have a doubt about the name actually, is "trackbackrdf" the Confluence (native) macro name? Any suggestions?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

411 views 3 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you