[xwiki-users] Use FontAwesome in Panel header
I would like to show a FontAwesome icon in the header of a panel. I have tried this: {{velocity}} #panelheader('{{icon name=list size=2x/}}') Content #panelfooter() {{/velocity}} and {{velocity}} #panelheader($services.localization.render("{{icon name=list size=2x/}}")) Content #panelfooter() {{/velocity}} Can't get this to work...help! -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514.... Sent from the XWiki- Users mailing list archive at Nabble.com.
-bump- -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
I could still use help in solving this problem! Does anyone have a clue? -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
-bump- -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
And another...bump! -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
I hate monologues... -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Hamster, On Tue, Nov 12, 2013 at 7:36 AM, Hamster <[email protected]> wrote:
I hate monologues...
Unfortunately this extension is not developed by the XWiki dev team (thus unsupported here), its author is not answering and nobody else seems to know. Now the best is that you debug it and find the solution and fix it/tell us how you did it ;) Thanks -Vincent PS: Just for my information, you did realize that this extension was contributed by an individual and not by the XWiki dev team, right? :) I'm checking whether it's visible enough on each extension page (in this case: http://extensions.xwiki.org/xwiki/bin/view/Extension/Font+Awesome+Icon+Macro).
Hi Vincent, Thanks for joining the monologue :-) Before I am going to digg into the Font Awesome Macro, are you sure that that's where I should be looking? Or should I look into how *panels* are being rendered by XWiki? -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
Well if you want help you need to help yourself a bit too ;) You didn't mention what was wrong... You didn't mention what HTML you got... Did you check the #panelheader() velocity macro to see what it does? Thanks -Vincent On Tue, Nov 12, 2013 at 2:54 PM, Hamster <[email protected]> wrote:
Hi Vincent,
Thanks for joining the monologue :-)
Before I am going to digg into the Font Awesome Macro, are you sure that that's where I should be looking? Or should I look into how *panels* are being rendered by XWiki?
-- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
vmassol wrote
You didn't mention what was wrong...
The Font Awesome icon is not being displayed in the panel header. See first post for two things I have tried to display a Font Awesome icon. vmassol wrote
You didn't mention what HTML you got...
See first post, that's the HTML I got, but it doesn't work. vmassol wrote
Did you check the #panelheader() velocity macro to see what it does?
If only I could *find* that velocity macro... but finding something in XWiki (like this "embedded macro") is like looking for a needle in the haystack...it's *impossible* to find if you don't know where you need to look. What page is that macro located? I have opened every page in the Panels space...found nothing. Searched the pages in the Main space...nothing. :-( -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Wed, Nov 13, 2013 at 7:45 AM, Hamster <[email protected]> wrote:
vmassol wrote
You didn't mention what was wrong...
The Font Awesome icon is not being displayed in the panel header. See first post for two things I have tried to display a Font Awesome icon.
vmassol wrote
You didn't mention what HTML you got...
See first post, that's the HTML I got, but it doesn't work.
vmassol wrote
Did you check the #panelheader() velocity macro to see what it does?
If only I could *find* that velocity macro... but finding something in XWiki (like this "embedded macro") is like looking for a needle in the haystack...it's *impossible* to find if you don't know where you need to look.
You could use a search tool like find & grep or any other search tool you have on your computer: find . -name "*" -exec grep -H "panelheader" {} \; But let me help you: it's located in macros.vm, specifically: ./webapps/xwiki/templates/macros.vm Or using GitHub: https://github.com/xwiki/xwiki-platform/blob/1ccefb0217d9af3f27b3eaafaa75ed4... As you can see it uses the HTML macro, specifically: {{html}}<h1 class="xwikipaneltitle">$title</h1>{{/html}} So putting something other than HTML in the $title variable is not going to work... {{icon name=list size=2x/}} is going to generate wiki syntax, not HTML, so that cannot work. Thanks -Vincent
What page is that macro located? I have opened every page in the Panels space...found nothing. Searched the pages in the Main space...nothing. :-(
-- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thanks for the info Vincent! -- View this message in context: http://xwiki.475771.n2.nabble.com/Use-FontAwesome-in-Panel-header-tp7587514p... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Hamster -
Vincent Massol