Hy All !! I am trying to delete the default carous...
# suitecommerce
h
Hy All !! I am trying to delete the default carousel Image Container through Developing an extension! I can add a child by getting layout component but when I try to remove Home Page content like the default carousel image (Jacket) it changes nothing .. Please help me if anybody knows how to access home page components and remove them .. Attached is the ScreenShot and code chunk for your reference Thanks in Advance Adding Child Works Fine
layout.addChildView('Home', function() {
                          
return new MyCoolModuleView({ container: container });
                    
});
Removing Child Also Works fine for other Data-views like header etc but not working for Home components like Image.slider/home etc
var layout = container.getComponent('Layout');
layout.removeChildView('Home');
s
Homepages are very personal things and so the content on the homepage in the base theme is just placeholder stuff which you should remove via your theme
There are no data-views on the content because it's expected you to just remove all the markup and replace it with your own
f
I recall there use to be an empty homepage layout included on the base theme
I don´t know if that´s the case for the other Themes, but it should still be there in the base theme
s
Don't forget you can also register a new page type template for the homepage in an extension and then work from that. You can put all the data-views in that as you want 🙂