Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.22.02
-
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.