Posted: 06/20/2008 7:25:41 PM
Reply Quoted
4umedia wrote: | 06/13/2008 4:50:52 AM |
Hello,
I want my categories and Links on my home page, I read the FAQ about it, but I think the FAQ is an old version.. I don't find the files in the directories mentioned in the faq.. and also the file catlist_element_main_dir.tpl doesn't exist..
So how put the categories and links on my home page in version 4.3.0?
Regards, Erik |
Hello Erik,
You can add the following to
themes/default2007/index.tpl:
<!-- Home categories -->
<inp2:m_RenderElement design="content_box" data_exists="1" block_no_data="no_categories">
<inp2:c_InitList list_name="sub_categories" parent_cat_id="Root" module="In-Link" />
<inp2:m_Capture to_var="header">
<table cellpadding="0" cellspacing="0" class="fullwidth">
<tr>
<td>
<img src="<inp2:m_TemplatesBase module="In-Portal"/>img/arraw_bottom.gif" width="11" height="6" alt="" />
<strong><inp2:c_Field name="Name"/> (<inp2:c_TotalRecords list_name="sub_categories" parent_cat_id="Root" module="In-Link"/>)</strong>
</td>
</tr>
</table>
</inp2:m_Capture>
<inp2:m_include template="platform/designs/categories"/>
<table class="fullwidth" style="background:url(<inp2:m_TemplatesBase module="In-Portal"/>img/link_details_background_yelow.gif) top repeat-x">
<inp2:c_ListCategories list_name="sub_categories" render_as="category_element" columns="2" direction="H" />
</table>
<!--##
<BR/>
<inp2:m_include template="platform/elements/pagination" prefix="c"/>
##-->
</inp2:m_RenderElement>
<!-- // Home categories -->
right before:
<!--## INCLUDE HOME PAGE ELEMENTS FOR EACH MODULE ##-->
<inp2:m_ModuleInclude template="elements/content_boxes/home_page_items" data_exists="1"/>
<!--## /HOME PAGE ELEMENTS ##-->
Thanks.