Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-1479

Cnd namespace: Discuss namespace base type being used to extend from instead of hippo:document for namespace types

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • High
    • Resolution: Probably fixed, check next version
    • 2.01.00m06.3
    • r2.01.xx (m08)
    • repository-core
    • None

    Description

      Currently, when a new namespace is added, say 'myhippo' then, when adding a news type, the cnd would look possibly something like:

      [myhippo:news] > hippostd:publishable, hippostd:publishableSummary, hippo:document

      • businesslease:body (string)
      • businesslease:title (string)
      • businesslease:date (date)

      Now, I would like to suggest to replace 'hippo:document' with 'myhippo:document' and have

      [myhippo:document] > hippo:document.

      So, myhippo:document is the basetype for this namespace. This looks trivial but has some major search advantages:

      1) I can query easily for all documents of a certain namespace which is currently not possible
      2) Counting all documents in a certain namespace is a simple query
      3) I do not get search results that I am not looking for (for example, when i search for 'hippo' i am currently finding all hippostd:folder nodes because they have properties with 'hippo' in it)
      4) I think authorisations for users which have access granted for just one of the 5 namespaces is much much easier (instead of adding each nodetype of the namespace for access, just add the basetype of the namespace)

      I think I can come up with more examples, but IMO, the ones above should justify my suggested change

      WDOT?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: