WebHare community

4.28 release candidate

WebHare 4.28 is nearly done - please check the upcoming release notes at: https://gitlab.com/webhare/platform/blob/release/4.28/whtree/modules/system/doc/topics/changelogs/4.28.md

This release brings some siteprofile syntax simplifications and also starts the move of some developer functionality from the core code to the ‘dev’ module. It will be mostly a cleanup and bugfix release.

What does this mean / how do you use this?

A <filetype> or <foldertype> is now a source of <apply> rules implicitly applied to that type.
  <contenttype namespace="urn::xmlns3" cloneoncopy="true">
    <member name="chatinfolink" type="whfsref" />
    <member name="chatinfolink2" type="whfsref" />
  </contenttype>

  <filetype typedef="urn::xmlns3"
              needstemplate="true"
              blobiscontent="false"
              needsprofile="false"
              ispublishable="true"
              requirescontent="false"
              isacceptableindex="true"
              ispublishedassubdir="true"
              capturesubpaths="true">
            </filetype>

  <apply>
    <to type="file" filetype="urn::xmlns3" />
    <setobjecteditor name="publisher:editdocument" supportsversioning="true" />
    <bodyrenderer library="lib/dummy.whlib" objectname="RenderRTD" />
  </apply>

can be rewritten as

  <filetype namespace="urn::xmlns3" kind="virtualfile" capturesubpaths="true">
    <members>
      <whfsref name="chatinfolink" />
      <whfsref name="chatinfolink2" />
    </members>
    <setobjecteditor name="publisher:editdocument" supportsversioning="true" />
    <bodyrenderer library="lib/dummy.whlib" objectname="RenderRTD" />
  </filetype>

dev:rewrite can do that now, if your module declares it requires 4.28 or up (`webhareversion=">= 4.28.0" in packaging node should do), so feedback/testing is welcome

1 Like