On Feb 18, 2009, at 8:03 PM, Anca Paula Luca wrote:
Dan Miron wrote:
Hi,
Regarding the
http://jira.xwiki.org/jira/browse/XWIKI-2964 issue,
this
is how I see it:
- Grabbing the icons from the silk iconset
- Creating a macro called 'icon' with the following parameters:
- fileName (required) the name of the file which holds
the
icon; here I see two possible approaches:
- with (optional)
- height (optional)
An example of usage would be the following:
{{icon fileName="arrow_out.gif" with="20" height="20" /}}
WDYT?
Would it be any difference between this macro and the image markup
([[image:reference]] or image:reference), besides the way the image
file
resolution (image: looks it up as an attachment whereas the {{icon}}
macro would
getit from the silk icon set) ?
This is possible but we would need a different uri. So yes we could
introduce:
icon:arrow_out
But I don't like it too much because it means changing the rendering
engine code for something that is not core IMO.
Thanks
-Vincent
Any way we could make these icons accessible as image:
references
instead of
building a whole new macro for it, for syntax simplicity?
Happy coding,
Anca Luca