Where to get images in next/previous macro

Hi forum,

I use this cool user macro : https://confluence.atlassian.com/display/DISC/Next+and+Previous+Links

Question is, when I call it as follows in layouts, I am not sure from where they pick the images:

$helper.renderConfluenceMacro("{next_previous_links:NextImage=images/macros/forwardbutton.jpg|PrevImage=images/macros/backbutton.jpg|WrapAtEnd=false}")

I have attached images to a space and referred to them as say /wiki/download/attachments/24976745/next.png for example, but the macro doesn't pick the image. I am not sure what images/macros location either. Any help please?

1 answer

The image source is determined by the following code:

img src="$config.getDomainName()/$paramPrevImage

So you need to drop the trailing "/" (and also the "wiki" part too), so if you enter just "download/attachments/24976745/next.png" it should work.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

278 views 1 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you