This article relates to release 3.1 and onwards.

Now we are using the tpl file for the main index page. This is for better speed of the site and the customer’s can change the style of the index page without changing the main files. The index.tpl file is present in the corresponding theme folder. For example, if we are using the blue theme, the index.tpl file should present in themes/blue/index.tpl. There are a number of defines in the index.tpl file, which will explain below.

{$indexpage_separator} : This variable is using for normal spacing between two lines. By adding this we have space between lines.

{$index_heading} :  The value of this variable is the data we are entering into the define

“HEADING_TITLE” on each language files. Before this we have to set the value “true” for “Show Heading Tiltle?” in settings->configuration->Enable/disable features->Mainpage.

{$index_heading_image} : This is the image showing on the right side on the $index_heading.

{$customer_greetings} : For this to show, first we have to enable “Show Greetings on index-page?”

The data of this can be change by changing the defines “TEXT_GREETING_PERSONAL” and “TEXT_GREETING_GUEST” in language file.

{$text_main} : For this to show, first we have to enable “Show Text Main on index-page?”

The data of this can be change by changing the defines “TEXT_MAIN”.

{$contents_main} : This is the contents from the define_mainpage.php or define_mainpage_customers.php. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Main Page.

{$featured_news} : This is the featured news section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Featured News.

{$new_products} : This is the New products section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show New Products.

{$product_featured} : This is the featured products section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Featured Products on index.

{$specials_content} : This is the Specials products section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Specials on index.

{$upcoming_product} : This is the Upcoming products section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Coming Products on index.

{$articles_content} : This is the Articles section. This can be enabled from settings->configuration->Enable/disable features->Mainpage->Show Featured Artilces.

{$flash_carosel_tpl} - This tpl variable shows your selected products with cool flash carousel.
The products  display in flash carousel module can select  from your admin section. 
This module can be  enabled in C-advanced -> Configurations -> Enable / disable Features -> Features on/off.
Also the various settings for flash carousel module can be set from
admin ->c advanced -> Configuration -> Product Features tab=> Flash carousel(url is system/admin/bgconfig.php?tab=product).
You can add the products to show in flash carousel from admin -> catalog -> Flash carousel(system/admin/flash_carousel.php).
To show the flash carousel module in index.php you need to add this tpl variable({$flash_carosel_tpl}) in your index.tpl file.

 

Sidst opdateret d. 04/12/2009.