In-portal
In-portal Software
Your Language:






Categories and Links on Home page - Topic Posts (4)



Rate Topic




Add To Favorites




Author Message

4umedia
Member




Joined: 06/13/2008
posts: 1
Location: Netherlands
Posted: 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


Dmitry
admin

Re:


Joined: 01/05/2002
posts: 1504
Location: United States
Posted: 06/20/2008 7:25:41 PM


Re:
4umedia : 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.



jsprague
Member




Joined: 07/19/2001
posts: 87
Location: United States
Posted: 06/28/2008 3:34:49 AM


That sort of worked, but caused a couple of odd things:
http://www.techtutorials.net/index.php

Now the login box title is (2) just like the header for the categories showing on the index page.


Dmitry
admin

Re:


Joined: 01/05/2002
posts: 1504
Location: United States
Posted: 07/07/2008 10:57:12 AM


Re:
jsprague : 06/28/2008 3:34:49 AM
That sort of worked, but caused a couple of odd things:
http://www.techtutorials.net/index.php

Now the login box title is (2) just like the header for the categories showing on the index page.


Hi Jason,

I fixed it directly on your site. Please review.

Thanks.




Items Per Page: