hst-core-tags
Tag imagevariant


This tag can be used only inside a 'html' tag to indicate that you do not want to use the image variant stored in the HippoHtml (hippostd:content), but that you want to use a different variant. For example, suppose you have imageset variants myproject:websitevariant and myproject:mobilesitevariant. In the HippoHtml, there might have been selected the 'myproject:websitevariant' image variant, but in your mobile channel, you want to use the 'myproject:mobilesitevariant'. You can do this by injecting this 'imagevariant' tag inside the 'html' tag. Also see the example below.

Example:
<hst:html hippobean="${document.intro}"> <hst:imagevariant name="myproject:mobileversion" replaces="myproject:websiteversion" fallback="true"/> </hst:html>


Tag Information
Tag Classorg.hippoecm.hst.tag.HstImageVariantTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
nametruetruejava.lang.StringThe name of the variant to use, for example 'myhippoproject:thumbnail'
replacesfalsetruejava.lang.StringOnly replaces the variant names that equal one of the names of the value of this comma separated attribute. If this attribute is missing, then *all* variants are replaced by the value from variant attr. Thus, this attribute is used to specifically specify which variants should be replaced. Multiple variants can be configured comma separated
fallbackfalsetruejava.lang.BooleanDefault value when not speficified is *false*. When this attribute is 'true', and the image variant from the 'variant' attribute does not exist, the fallback will use the original variant

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.