cancel
Showing results for 
Search instead for 
Did you mean: 

adding new content slot

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor
0 Kudos

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>
Former Member
0 Kudos

Andrew, do you know what does "not defined" on the screenshots above mean? Is it important to have the appropriate order of content editors, or not?

andyfletcher
Active Contributor
0 Kudos

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.

Answers (0)