Uploaded image for project: 'Hippo Site Toolkit 2'
  1. 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

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.22.02
    • Fix Version/s: 2.23.01
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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

            • Assignee:
              wko Woonsan Ko
              Reporter:
              wko Woonsan Ko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: