public class TeaserUtils
extends java.lang.Object
Constructor and Description |
---|
TeaserUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getImage(Page teaser)
Returns a image for the teaser, based on the following logic:
check for page image
check for first par image component
check for first par textimage component
fallback, return page template thumbnail
|
static java.lang.String |
getImage(SlingHttpServletRequest request,
Page teaser)
Returns a image for the teaser, based on the following logic:
check for page image
check for first par image component
check for first par textimage component
fallback, return page template thumbnail
|
public static java.lang.String getImage(Page teaser)
teaser
- Teaser pagepublic static java.lang.String getImage(SlingHttpServletRequest request, Page teaser)
request
- SlingHttpServletRequest used for resource mappingteaser
- Teaser page"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"