on 09-19-2014 4:36 PM
Hi,
I am trying to add new content slot to ProductDetails page. Edited the velocity template and created new slot. However the new section does not reflect in powertools site. I have added this to the velocity template :-
<cockpit code="New Slot Crossed" />
</td>
But the content of this slot doesnt show up on the page.... Can you please suggest what i must be missing.
Please help.
You need to tell the front end where to render your new component in it's layout template. The Velocity template is only used for layout within the cockpit.
Look for the frontendTemplateName
property on your template. For the Product Details Template you are using in your screenshot it will be product/productLayout1Page
This corresponds to yourstorefront/web/webroot/WEB-INF/views/desktop/pages/product/productLayout1Page.jsp
Edit that file to see the way that the other slots are put into the page layout e.g.
<cms:pageSlot position="Section1" var="comp" element="div" class="span-24 section1 cms_disp-img_slot">
<cms:component component="${comp}"/>
</cms:pageSlot>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah it means that there isn't a content slot in that page or template.
You define a list of possible content slot names on the template (in your case Section 5
is one of those) but you then need a ContentSlotForPage
or ContentSlotForTemplate
to join the page or template to a ContentSlot
. You just haven't done that.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.