Custom Block On Homepage

Hi,

I am trying to show some custom categories on the homepage. So I have created a file named "customize_categories.tpl" in folder /design/themes/customtheme/templates/blocks/categories/

I have selected in the layout and it seems to work but it does not show any category link or image. The code I have used it this:

======================

{foreach from=$items item="category"}
  • {if $category.sub}
    {foreach from=$category.sub item="sub"}
    {$sub.category}
    {/foreach}
    {/if}
    {/foreach}
    ================================================
    Can anyone help ?

    Please put code in a code block so it’s readable.

    How are you setting the template variables you are using in your block?

    What filling type do you use for the block with this template?

    Hi,

    Thank you for replying. then code is this

    {foreach from=$items item="category"}
  • {/foreach}