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

Enable linking to a HstSiteMapItem by refId

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.10.00
    • 2.10.01
    • None
    • None

    Description

      The advantage of this is that you can create a link to a 'fixed' refId instead of to some fixed 'path'.

      Use case:

      Suppose you have an English and Dutch website, both with their own sitemaps.

      Dutch has item: 'kontakt' and English has 'contact'

      Now, if you want to create a 'fixed' link in jsp, you want to use for example

      <hst:link siteMapItemRefId='contact'>

      Then, for the English site, you'll get 'general/contact' for example, and for Dutch you get '/algemeen/kontakt'

      To have this feature, you need to configure on hst:refId on your HstSiteMapItem configuration and both 'kontakt' and 'contact' need the same refId.

      Note that within a single SiteMap, no duplicate refId's are allowed. We'll throw an exception in this case during building the configuration model.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: