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

'mountType' attribute in hst link tag to allow simple link creation of different types such as preview.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.22.02
    • 2.23.01
    • None
    • None

    Description

      I need to create a link to a preview mode document from a live mode document.
      For example, I want to use this:
      <hst:link hippobean="${document}" mountType="preview" />
      or
      <hst:link hippobean="${document}" mount="restapi" mountType="preview" />

      However, <hst:link> tag doesn't seem to have a 'type' attribute, so this is not convenient.
      The tag has 'mount' attribute, but it doesn't look fit very well for this requirement.

      Here's a use case:
      I want live site pages which is read-only, and preview site pages which allows modifications through REST. The template JSP page could have conditional JSTL tags for this. (e.g. <hst:defineObjects/><c:if test="${hstRequestConext.preview}"></c:if>)
      For example, a live page can have a link in header to the corresponding preview page.
      I guess I can accomplish this by creating HstLink in component java class, but I want this feature through the link tag. That must be simpler for this simple feature.

      Attachments

        Activity

          People

            wko Woonsan Ko (Inactive)
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: