[xwiki-users] Use FontAwesome in Spoiler Macro title
I would like to use an icon from the Font Awesome Icon Macro <http://extensions.xwiki.org/xwiki/bin/view/Extension/Font+Awesome+Icon+Macro> in the title of a Spoiler Macro <http://extensions.xwiki.org/xwiki/bin/view/Extension/Spoiler+Macro> But I can't get it right :-( Is this possible? -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Spoiler-Macro-title-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
Things I have tried... {{spoiler title={{icon name="camera"}}{{/icon}}}} This is the content {{/spoiler}} {{spoiler title={{icon name='camera'}}{{/icon}}}} This is the content {{/spoiler}} {{spoiler title="{{icon name="camera"}}{{/icon}}"}} This is the content {{/spoiler}} {{spoiler title='{{icon name='camera'}}{{/icon}}'}} This is the content {{/spoiler}} {{spoiler title="{{icon name='camera'}}{{/icon}}"}} This is the content {{/spoiler}} {{spoiler title='{{icon name="camera"}}{{/icon}}'}} This is the content {{/spoiler}} The last two seems to be the most promising (as I can see the ico), but it's not what I want :-( -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Spoiler-Macro-title-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
This also doesn't work... {{velocity}} #set($title={{icon name="camera"}}{{/icon}}) {{spoiler title=$title}} This is the content {{/spoiler}} {{/velocity}} -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Spoiler-Macro-title-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
-bump- Or... ...does anyone know if it's possible to show a picture/FontAwesome icon in a PANEL? -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Spoiler-Macro-title-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 10/08/2013 05:40 AM, Hamster wrote:
-bump-
Or...
...does anyone know if it's possible to show a picture/FontAwesome icon in a PANEL?
You can install http://extensions.xwiki.org/xwiki/bin/Extension/Font+Awesome+Icon+Macro -- Sergiu Dumitriu http://purl.org/net/sergiu
On 10/08/2013 05:40 AM, Hamster wrote:
-bump-
Or...
...does anyone know if it's possible to show a picture/FontAwesome icon in a PANEL?
Ah, I read the original question. It does work for me with the following content: {{spoiler title="{{icon name=camera/}}"}} This is the content {{/spoiler}} {{spoiler title="{{icon name=twitter}}Want to see the truth?{{/icon}}"}} You can't handle the truth! {{/spoiler}} -- Sergiu Dumitriu http://purl.org/net/sergiu
Thanks Sergiu, I have tried a lot of combinations, but yours truely works (not in XWiki 4.0 but it does work in XWiki 5.1)! -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Spoiler-Macro-title-tp7... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Hamster -
Sergiu Dumitriu