Interface CMChannel
- All Superinterfaces:
com.coremedia.objectserver.dataviews.AssumesIdentity,BelowRootNavigation,CMContext,CMHasContexts,CMLinkable,CMLocalized,CMNavigation,CMObject,CMTeasable,com.coremedia.objectserver.beans.ContentBean,com.coremedia.blueprint.common.feeds.FeedSource<CMLinkable>,HasPageGrid,HasViewTypeName,com.coremedia.blueprint.base.links.KnowsVanityUrls,Linkable,Navigation,com.coremedia.blueprint.common.datevalidation.ValidityPeriod
A channel is a hierarchical navigation entity with "booked content". The booked content is divided into several linklists which represent the areas of a page. You are encouraged to change these content linklists according to your particular page layout.
Some parts of a page are typically the same for many different channels,
e.g. headers and footers with company information, ad blocks, ...
Therefore the implementation bean of CMChannel supports a fallback to the
parent channel for header and footer.
If a channel has several parents (i.e. referenced by the children property of other channels) an arbitrary parent is chosen to inherit from. I.e. channels with several parents (not recommended anyway) should bring their own properties to ensure a reliable behaviour.
Represents the document type CMChannel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.since 2110; The property 'footer' is not used any longer, so this constant is obsolete.static final StringDeprecated.since 2110; The property 'header' is not used any longer, so this constant is obsolete.static final StringName of the ContentType'CMChannel'.Fields inherited from interface com.coremedia.blueprint.common.contentbeans.CMHasContexts
CONTEXTSFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
EXTERNALLY_DISPLAYED_DATE, HTML_DESCRIPTION, HTML_TITLE, KEYWORDS, LINKED_SETTINGS, LOCAL_SETTINGS, LOCATION_TAXONOMY, RESOURCE_BUNDLES2, SEGMENT, SUBJECT_TAXONOMY, TITLE, VALID_FROM, VALID_TO, VIEWTYPEFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
LOCALE, MASTER, MASTER_VERSIONFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMNavigation
CHILDREN, CSS, FAVICON, HIDDEN, HIDDEN_IN_SITEMAP, JAVA_SCRIPT, PLACEMENT, THEMEFields inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
AUTHORS, DETAIL_TEXT, NOT_SEARCHABLE, PICTURES, RELATED, TEASER_OVERLAY_SETTINGS_STRUCT_NAME, TEASER_OVERLAY_SETTINGS_STYLE_SUB_STRUCT_NAME, TEASER_SETTINGS_STRUCT_NAME, TEASER_TEXT, TEASER_TITLEFields inherited from interface com.coremedia.objectserver.beans.ContentBean
METADATA_PROPERTIES_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 1907.1; Implement optional features as extensions.Deprecated.since 1907.1; Implement optional features as extensions.Deprecated.since 2110; Obsolete, all contents of a page are controlled in the page grid meanwhile.Deprecated.since 2110; Obsolete, all contents of a page are controlled in the page grid meanwhile.Collection<? extends CMChannel>Returns theLocalespecific variants of thisCMLocalizedReturns the value of the document propertyCMLocalized.MASTER.Returns the variants of thisCMLocalizedindexed by theirLocaleMethods inherited from interface com.coremedia.objectserver.dataviews.AssumesIdentity
assumeIdentityMethods inherited from interface com.coremedia.blueprint.common.contentbeans.BelowRootNavigation
getRootNavigationsMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLinkable
getContexts, getExternallyDisplayedDate, getHtmlDescription, getHtmlTitle, getKeywords, getLinkedSettings, getLocalSettings, getLocationTaxonomy, getResourceBundles2, getSubjectTaxonomy, getTitle, getValidFrom, getValidTo, getViewtype, isOpenInNewTabMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMLocalized
getCountry, getLang, getLocale, getMasterVersionMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMNavigation
getCss, getFavicon, getJavaScript, getPlacementMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMObject
getAspectsProvider, getContentId, getUuidMethods inherited from interface com.coremedia.blueprint.common.contentbeans.CMTeasable
fetchMediaWithRecursionDetection, getAuthors, getCallToActionSettings, getDetailText, getFirstMedia, getMedia, getPicture, getPictures, getRelated, getRelatedAll, getRelatedAllByType, getRelatedByReferrers, getRelatedBySimilarTaxonomies, getRelatedImplicitly, getRelatedImplicitlyByType, getTarget, getTeaserOverlaySettings, getTeaserOverlayStyle, getTeaserSettings, getTeaserText, getTeaserTitle, getTextAsParagraphs, isNotSearchableMethods inherited from interface com.coremedia.objectserver.beans.ContentBean
getContent, getContentBeanFactoryMethods inherited from interface com.coremedia.blueprint.common.feeds.FeedSource
getFeedDescription, getFeedFormat, getFeedItems, getFeedTitle, getItemsFlattened, getPublishedDateMethods inherited from interface com.coremedia.blueprint.common.layout.HasPageGrid
getContext, getPageGridMethods inherited from interface com.coremedia.blueprint.common.navigation.HasViewTypeName
getViewTypeNameMethods inherited from interface com.coremedia.blueprint.base.links.KnowsVanityUrls
getVanityUrlMapperMethods inherited from interface com.coremedia.blueprint.common.navigation.Linkable
getLocale, getSegmentMethods inherited from interface com.coremedia.blueprint.common.navigation.Navigation
getAspectsProvider, getChildren, getCodeResourcesTreeRelation, getContext, getNavigationPathList, getParentNavigation, getRootNavigation, getSitemapChildren, getTheme, getVisibleChildren, isHidden, isHiddenInSitemap, isRoot
-
Field Details
-
NAME
Name of the ContentType'CMChannel'.- See Also:
-
HEADER
Deprecated.since 2110; The property 'header' is not used any longer, so this constant is obsolete.Name of the document property 'header'.- See Also:
-
FOOTER
Deprecated.since 2110; The property 'footer' is not used any longer, so this constant is obsolete.Name of the document property 'footer'.- See Also:
-
-
Method Details
-
getMaster
CMChannel getMaster()Returns the value of the document propertyCMLocalized.MASTER.- Specified by:
getMasterin interfaceCMContext- Specified by:
getMasterin interfaceCMHasContexts- Specified by:
getMasterin interfaceCMLinkable- Specified by:
getMasterin interfaceCMLocalized- Specified by:
getMasterin interfaceCMNavigation- Specified by:
getMasterin interfaceCMTeasable- Returns:
- a
CMChannelobject
-
getVariantsByLocale
Description copied from interface:CMLocalizedReturns the variants of thisCMLocalizedindexed by theirLocale- Specified by:
getVariantsByLocalein interfaceCMContext- Specified by:
getVariantsByLocalein interfaceCMHasContexts- Specified by:
getVariantsByLocalein interfaceCMLinkable- Specified by:
getVariantsByLocalein interfaceCMLocalized- Specified by:
getVariantsByLocalein interfaceCMNavigation- Specified by:
getVariantsByLocalein interfaceCMTeasable- Returns:
- the variants of this
CMLocalizedindexed by theirLocale
-
getLocalizations
Collection<? extends CMChannel> getLocalizations()Description copied from interface:CMLocalizedReturns the
Localespecific variants of thisCMLocalized- Usage:
Add elements for each variant excluding self (self is of type
Pagein this example).- Freemarker:
-
<#if (self.content.localizations)?has_content> <#assign localizations=self.content.localizations![] /> <#list localizations as localization> <#if localization.locale != self.content.locale> <link rel="alternate" ... /> </#if> </#list> </#if> - JSP:
-
<c:set var="locales" value="${self.content.localizations}"/> <c:if test="${not empty locales}"> <c:forEach var="localization" items="${locales}"> <c:if test="${localization.locale != self.content.locale}"> <cm:link var="localitationLink" target="${localization}"/> <link rel="alternate" ... /> </c:if> </c:forEach> </c:if>
- Specified by:
getLocalizationsin interfaceCMContext- Specified by:
getLocalizationsin interfaceCMHasContexts- Specified by:
getLocalizationsin interfaceCMLinkable- Specified by:
getLocalizationsin interfaceCMLocalized- Specified by:
getLocalizationsin interfaceCMNavigation- Specified by:
getLocalizationsin interfaceCMTeasable- Returns:
- the
Localespecific variants of thisCMLocalized
-
getAspectByName
@Deprecated Map<String,? extends com.coremedia.cae.aspect.Aspect<? extends CMChannel>> getAspectByName()Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a Map from aspectIDs to Aspects. AspectIDs consists of an aspectname with a prefix which identifies the plugin provider.
- Usage:
Access an aspect named osmPlugin.
- Freemarker:
-
<#assign osmSocialPlugin=self.aspectByName['osmPlugin'] /> - JSP:
-
<c:set var="osmSocialPlugin" value="${self.aspectByName['osmPlugin']}"/>
- Specified by:
getAspectByNamein interfaceCMContext- Specified by:
getAspectByNamein interfaceCMHasContexts- Specified by:
getAspectByNamein interfaceCMLinkable- Specified by:
getAspectByNamein interfaceCMLocalized- Specified by:
getAspectByNamein interfaceCMNavigation- Specified by:
getAspectByNamein interfaceCMObject- Specified by:
getAspectByNamein interfaceCMTeasable- Returns:
- a Map from aspectIDs to Aspects
-
getAspects
Deprecated.since 1907.1; Implement optional features as extensions.Description copied from interface:CMObjectReturns a list of all
Aspectfrom all available PlugIns that are registered to this contentbean.- Usage:
Add all aspects with view
asHead.- Freemarker:
-
<#list self.aspects as aspect> <@cm.include self=aspect view="asHeader"/> </#list> - JSP:
-
<c:forEach items="${self.aspects}" var="aspect"> <cm:include self="${aspect}" view="asHeader"/> </c:forEach>
- Specified by:
getAspectsin interfaceCMContext- Specified by:
getAspectsin interfaceCMHasContexts- Specified by:
getAspectsin interfaceCMLinkable- Specified by:
getAspectsin interfaceCMLocalized- Specified by:
getAspectsin interfaceCMNavigation- Specified by:
getAspectsin interfaceCMObject- Specified by:
getAspectsin interfaceCMTeasable- Returns:
- a list of Aspects
-
getHeader
Deprecated.since 2110; Obsolete, all contents of a page are controlled in the page grid meanwhile.Returns the value of the document propertyHEADER.- Returns:
- a list of
CMLinkableobjects
-