public class SiteMapItemTag
extends javax.servlet.jsp.tagext.TagSupport
siteItemTag
tag. Defines a sitemap item that
can be added to a HstLinkTag
. If a sitemap item is added to a HstLinkTag, it means that
for linkrewriting, this sitemap item + descendants have precedence for rewriting the link. Depending on whether
fallback
is true or false, a fallback to original linkrewriting is done when the preferred sitemap item
cannot create a link.
preferItem : the preferred sitemap item (HstSiteMapItem
)
preferItemId : the id of the preferred sitemap item (java.lang.String)
preferPath : the pathInfo (url) of the preferred sitemap item (java.lang.String)
preferItemByPath : the preferred sitemap item by path for freemarker (java.lang.String)
fallback : true|false (java.lang.String)
Modifier and Type | Field and Description |
---|---|
protected boolean |
fallback |
protected String |
preferItemId |
protected String |
preferPath |
protected HstSiteMapItem |
siteMapItem |
protected boolean |
skipTag |
Constructor and Description |
---|
SiteMapItemTag() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
int |
doStartTag() |
HstSiteMapItem |
getPreferItem()
Returns the name.
|
void |
setFallback(boolean fallback)
Sets the fallback
|
void |
setPreferItem(HstSiteMapItem siteMapItem)
Sets the siteMapItem.
|
void |
setPreferItemId(String preferItemId) |
void |
setPreferPath(String preferPath) |
protected HstSiteMapItem siteMapItem
protected boolean fallback
protected String preferItemId
protected String preferPath
protected boolean skipTag
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
protected void cleanup()
public HstSiteMapItem getPreferItem()
public void setPreferItem(HstSiteMapItem siteMapItem)
siteMapItem
- to setpublic void setPreferItemId(String preferItemId)
public void setPreferPath(String preferPath)
public void setFallback(boolean fallback)
fallback
- to setCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.