Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2141

Support multiple component configuration mappings PER sitemap item

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.25.04-alpha
    • None
    • None

    Description

      Currently we cannot easily support a single sitemap item to render completely different component hierarchies. This is because there is only a single hst component configuration id PER sitemap item.

      Also, this makes it really hard to have folders that contain mixed document types, say agenda and news items.

      What we'd like to be able to support is the following:

      Sitemap item

      **.html

      • hst:componentconfigurationid = hst:pages/detailpage
      • hst:componentconfigurationidMappings = {myns:newsdocument = hst:pages/newspage, myns:agendadocument = hst:pages/agendapage}
      • hst:relativecontentpath = common/${1}

      Now, if the relative contentpath points to a document of type newsdocument, the page will be rendered as a hst:pages/newspage, if it is a agendadocument it will be rendered as a hst:pages/agendapage and otherwise as the default hst:pages/detailpage

      This makes it also possible to store any documenttype directly in, say the folder 'common' and render it completely differently.

      Note: because jcr does not support a map of course, we use

      • hst:componentconfigurationmappingnames (string) multiple
      • hst:componentconfigurationmappingvalues (string) multiple

      similar to parameternames and values

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              svoortman Simon Voortman (Inactive)
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: