Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20682

Introduce an icon macro

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 15.2-rc-1, 14.10.6
    • 14.10
    • Icon Themes
    • None
    • Unit, Integration
    • Unknown

    Description

      A macro for displaying an icon of the current or a chosen icon theme should be introduced. This avoids the need for using the Velocity macro display an icon that matches the icons in the rest of the UI. Parameters:

      • Icon name
      • Icon set (defaults to current icon set)
      • Fallback to default (defaults to true)

      Ideally, for the icon name an icon picker should be used but this won't be part of the first version.

      A problem is that the font awesome icon macro already uses the obvious name "icon" so either that macro will be broken or this icon macro needs a new name.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: