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

Create a new mechanism to overwrite a skin file

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0-milestone-1
    • Fix Version/s: 7.0-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The idea was first proposed there:XWIKI-10568 with a big discussion about this.

      The original need was "Being able, in a Skin object, to overwrite a skin file placed in a subdirectory".

      It seems that the cleanest solution is the one proposed by Eduard Moraru: introduce a new mechanism: one XObject per file that we want to override.

      The new XClass would be called "XWiki.XWikiSkinFileOverride".
      It would contains 2 properties:

      • a path (eg: htmlheaders.vm, less/buttons.less...)
      • a content (a textarea).

      We could also add a third property:

      • merge mechanism, with 3 options: overwrite the original file, concat the original file with the new one by adding the new content before, concat the original file with the content by adding the new content after.

      It would be good to also deprecate the current mechanism (modifying the XWiki.XWikiSkinClass or attach a file to the page).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              gdelhumeau Guillaume Delhumeau
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: