Professional Documents
Culture Documents
Hybris Developer Training Part II - Commerce - Module 09 - WCMS
Hybris Developer Training Part II - Commerce - Module 09 - WCMS
WCMS
6/3/2013
WCMS Overview
DEMO
CMS Model
What is a WCMS?
WCMS Overview
sample storefront
cms library
WCMS Module
cms core
platform/core
6/3/2013
WCMS Overview
storefront
wishlist
external to wcms
WCMS
customerreview
cms2lib
cmscockpit
cms2
basecommerce
hybris Platform
WCMS Overview
Content personalization
Based in Context Information
Like current user, group, time, product, category
6/3/2013
WCMS Overview
WCMS Overview
Key Benefits
Classic WCMS
components management:
paragraph, banner, link, etc.
Page Templates
2 column standard
3 column product
brand template
Pages
Homepage
Company Profile
Eizo Monitor
Components
text
image
link list
image gallery
6/3/2013
Navigation
WCMS Overview
Cart Summary
Rotating Images
Banners
Product Carousel
Footer
WCMS Overview
10
Cart Summary
Navigation
Rotating Images
Banners
Product Carousel
6/3/2013
11
WCMS Overview
DEMO
CMS Model
WCMS Demo
12
6/3/2013
13
WCMS Overview
DEMO
CMS Model
CMS Model
14
6/3/2013
15
CMS Model
platform
Catalog
basecommerce
Base
Store
CMSSite
ContentSlotName
Content
Catalog
CMSRelation
CMSItem
1..*
Platform
1..*
ContentSlotForTemplate
PageTemplate
1..*
CMSCatalog
Restriction
Catalog
CMSProduct
Restriction
Product
ContentSlot
ContentSlotForPage
AbstractPage
CMSItem
Custom
ContentPage
CategoryPage
Abstract
Restriction
ProductPage
AbstractCMS
Component
CMSTime
Restriction
CMSUser
Group
Restriction
CatalogPage
SimpleCMS
Component
AbstractCMS
ComponentContainer
CMSNavigationNode
*
CMSUser
Restriction
User
UserGroup
*
CMSCategory
Restriction
Category
Custom
CMSLink
Component
CMSImage
Component
CMSParagraph
Component
Custom
WCMS CMSSite
CMS Model
16
platform
Catalog
basecommerce
*
*
BaseStore
CMSSite
ContentCatalog
6/3/2013
CMS Model
17
AbstractCMSComponent
SimpleCMSComponent
CMSLinkComponent
CMSImageComponent
AbstractCMSComponentContainer
CMSParagraphComponent
Custom
WCMS PageTemplates
CMS Model
18
CMSItem
PageTemplate
1..*
1..*
1
ContentSlotName
ContentSlotForTemplate
ContentSlot
6/3/2013
WCMS Pages
CMS Model
19
PageTemplate
1..*
AbstractPage
ContentPage
CatalogPage
CategoryPage
1..*
ContentSlotForPage
ProductPage
ContentSlot
Custom
CMS Model
20
Platform
AbstractPage
CMSCatalog
Restriction
Abstract
Restriction
AbstractCMSComponent
CMSProduct
Restriction
Catalog
*
Product
CMSTime
Restriction
CMSUser
Restriction
CMSUserGroup
Restriction
CMSCategory
Restriction
User
*
UserGroup
*
Category
Custom
10
6/3/2013
CMS Model
21
Step 1
Type definition
<itemtype code="CMSWeekDayRestriction"
extends="AbstractRestriction"...
Step 2
CMS Model
22
Step 3
Evaluator bean definition
<bean id="cmsWeekDayRestrictionEvaluator" ...
Step 4
Evaluator mapping bean definition
<bean id="cmsWeekDayRestrictionEvaluatorMapping"
class="de.hybris.platform.cms2.servicelayer.services.
evaluator.CMSRestrictionEvaluatorMapping"
scope="tenant">
<propertyname="restrictionTypeCode"
value="CMSWeekDayRestriction"/>
<propertyname="restrictionEvaluator"
ref="cmsWeekDayRestrictionEvaluator"/>
</bean>
11
6/3/2013
WCMS - Flow
CMS Model
myshop.com
Browser
23
hybris
URL
1.
addSession: SiteModel
CMSSiteFilter
/*
2. Spring
Page (default.jsp)
foreach
Service-Layer
Tag-Library
PageController
Slots
Tag-Library
foreach
Components
1. Tag-Library
component-xyz.jsp
2. Spring
Component-Ctrl
3.
4.
HTML
Data
CMS Model
24
CMSComponent
Delegate to CMSDefaultController
Write all editor properties in the model
yes
12
6/3/2013
CMS Model
25
26
13