View Single Post
  #1  
Old 11-17-2017, 10:26 AM
 
ftorres ftorres is offline
 

Newbie
  
Join Date: May 2016
Posts: 5
 

Default How to add custom html to homepage only?

Hi everyone, I asked this on Stackoverflow but still no answers.

I'm developing an X-Cart 5 site and need to add custom html on the homepage (a.k.a. storefront).

Using the X-Cart development documentation, I created a custom module and added the modifications to the Crisp White template using the @ListChild directive inside my TWIG files.

But, since I used ListChild with list=center.bottom , my custom module shows on every page. We want the code to appear only on the home page.

I have several questions:

1.Which @ListChild values can I use to display the module only on homepage?

2.Is there a website where I can see a list of all the available @ListChild values? I searched in X-Cart documentation and can't find a list of available ListChild positions.

3.If it's not possible using ListChild, I know we can query the current page inside the template. How to test if the current page is the homepage?

Thanks for all the help.
__________________
xcart v5.3.3.4 [linux]