I've had a try at added them into both a default confluence install and a theme plugin with no success so far. I think it may be to do with the "magic" numbers created for each of the images when the product is initially built. I'm going to keep trying to find a way to do it though :)
Hi Kirstin, thanks a lot for the macro. I tried this, and it works very well.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the link. When I scrolled through the comments I found Sarah's remark that it's not possible to add emoticons to the Confluence emoticon panel. Maybe we can use a custom macro to insert some small image but I have no idea how this is done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Confluence 4.x, a macro like this should do it:
## Macro title: TrafficLight ## Macro has a body: No ## Body processing: No macro body <ac:image> <ri:attachment ri:filename="<insert here the filename of the image>"> <ri:page ri:content-title="<insert here the name of the page the image is attached to>" ri:space-key="<insert here the name of the space the page resides in>"/> </ri:attachment> </ac:image>
You can find more information on how to create a custom user macro here: https://confluence.atlassian.com/display/DOC/Writing+User+Macros.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kirstin Seidel-Gebert. Thanks for the code but unfortunately, it does not work with Confluence 5.7.1.
Does anyone has an example that will work with Confluence 5.7.1? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hsein,
we're still on Confluence 5.5, but it should work there.
I don't know why I wrote "Confluence 4.x" in my comment. This is probably a typo and should have been 5.x.
What problems do you have?
Cheers,
Kirstin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kirstin,
Many thanks for your feedback and sorry for my late reply.I have added the ## @noparams because Confluence is complaining that the macro does not have any metadata configured.
## Macro title: TrafficLight ## Macro has a body: No ## Body processing: No macro body ## @noparams <ac:image> <ri:attachment ri:filename="<ConfIcon.PNG>"> <ri:page ri:content-title="<Test>" ri:space-key="<SystemTest>"/> </ri:attachment> </ac:image>
What I get is unknown attachment message as below.
image2016-3-11 11:38:1.png
Did I did anything wrong??
Many thanks,
Hsein
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Hsein,
I can't see the attachment. But what I can see from the code you posted is that you kept the arrow brackets in the code. Try:
<ac:image>
<ri:attachment ri:filename=
"ConfIcon.PNG"
>
<ri:page ri:content-title=
"Test"
ri:space-key=
"SystemTest"
/>
</ri:attachment>
</ac:image>
The arrow brackets where only to indicate that this content has to be replaced.
Are you sure that your space key is SystemTest? Or is this rather the name of the space?
Cheers,
Kirstin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kristin,
Thanks to your useful hints and tips, it works perfectly now.
Sorry, my mistake..
Many thanks,
Hsein
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome, Hsein.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This page explains how to insert the standard emoticons and what their character combinations are. Knowing how to extend that with your own custom emoticons would be interesting for me as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.