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

Cannot style specific Panels because of limited HTML class attribute generated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 10.6-rc-1
    • 9.11
    • Panels
    • None
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      In macros.vm we have:

        #set ($specialClassAttribute = $util.convertToAlphaNumeric($paneldoc.name))
      ...
      <div class="panel expanded $!specialClassAttribute">
      

      So if the paneldoc is for example Menu.menu1.WebHome then $paneldoc.name will be WebHome which isn't nice. All entries created with the Menu app are nested pages and thus all panels created with the Menu app will have "<div class="panel expanded WebHome">" which is not nice and doesn't allow for custom styling.

      We should serialize the full reference instead.

      Attachments

        Issue Links

          Activity

            People

              atallahade Adel Atallah
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: