Reputation: 403
Hi what is the best page template to use for a page having a form in Hybris?Should you go for some out of the box template or create a new one?
Upvotes: 0
Views: 1589
Reputation: 1822
I would suggest to create a new CMSComponent which contains the form.
Upvotes: 1
Reputation: 5810
You can use ContentPage
to create your page.
You can choose OOTB page template(e.g. ContentPage1Template) if it's layout fits with your requirement or create your custom. Make sure, ContentPage type is not restricted for your page template. Which can be checked with restrictedPageTypes of PageTemplate.
# Create PageTemplates
# These define the layout for pages
# "FrontendTemplateName" is used to define the JSP that should be used to render the page for pages with multiple possible layouts.
# "RestrictedPageTypes" is used to restrict templates to page types
INSERT_UPDATE PageTemplate ; $contentCV[unique=true] ; uid[unique=true] ; name ; frontendTemplateName ; restrictedPageTypes(code) ; active[default=true]
; ; ContentPage1Template ; Content Page 1 Template ; layout/contentLayout1Page ; ContentPage
You can refer faq content page, which is created using ContentPage1Template page template.
# Simple Content Pages
INSERT_UPDATE ContentPage ; $contentCV[unique=true] ; uid[unique=true] ; name ; masterTemplate(uid,$contentCV) ; label ; defaultPage[default='true'] ; approvalStatus(code)[default='approved'] ; homepage[default='false']
; ; faq ; Frequently Asked Questions FAQ Page ; ContentPage1Template ; /faq
Upvotes: 1