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

Cannot style specific Panels because of limited HTML class attribute generated

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.11
    • Fix Version/s: 10.6-rc-1
    • Component/s: Panels
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: