Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6991 Add hooks into the platform to handle the workspaces feature when it is installed
  3. XWIKI-6994

Add the CSS for the top menu enhancements (common to both main wiki and workspaces)

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Won't Fix
    • Major
    • None
    • 3.2 M2
    • {Unused} Colibri Skin
    • None
    • workspace top menu ui css
    • Unknown

    Description

      Since both the main wiki and the workspaces have to have new elements, we need a CSS that's visible by both. A StyleSheetExtension can be made visible to an entire wiki at most, but not globally.

      There would be 2 options:
      1. To avoid redundancy, extend style.css with an extra @import to a page in the main wiki that has a StyleSheetExtension and that is actually used only when it's present.
      2. Use a page that has a StyleSheetExtension set to wiki-level visibility and duplicate it into the main wiki and all of the generated workspaces. This is less invasive, but harder to maintain and redundant.

      Currently, I`ve chosen option 1 by doing something like:

      #set ($workspaceManagerStyleDocumentReference = $services.model.createDocumentReference($xcontext.mainWikiName, 'WorkspaceManager', 'Style'))
      @import "$xwiki.getURL($workspaceManagerStyleDocumentReference, 'ssx', '')";
      

      Attachments

        Issue Links

          Activity

            People

              enygma Eduard Moraru
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: