Intechnic
Users Developers
Home / Forums / In-Portal CMS / General In-Portal Discussions / Categories and Links on Home page / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

Categories and Links on Home page (5)


Posted: 06/13/2008 4:50:52 AM

Reply Quoted  


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

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.


Posted: 06/28/2008 3:34:49 AM

Reply Quoted  


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.

Posted: 07/07/2008 10:57:12 AM

Reply Quoted  


jsprague wrote: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.

Posted: 05/13/2012 6:07:36 AM

Reply Quoted  


I tried this on the latest version but it didn't work, any updates?



Dmitry wrote:07/07/2008 10:57:12 AM
jsprague wrote: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.