Login  Register

RE: Displaying Just the Subforums

Posted by jsmoraes on Nov 17, 2014; 4:03pm
URL: https://support.nabble.com/Displaying-Just-the-Subforums-tp7592670p7592691.html

If you want that a forum application hasn't possibility to post new topic, and show only the sub-foruns that Admin creates, than you must change the code of macro new_topic_action_link
 <override_macro name="new_topic_action_link" parameters="text">
    <div class="[n.action_link_style/]">
        <n.page_node.>
            <n.if.is_root><then></then>
            <else>
                <img src="/images/icon_post_message.png" class="image16" />
            <n.new_topic_link>
                <title>
                    <t>Post new message in <t.location.subject/></t>
                </title>
                <text>
                    <n.default. to="[t]New Topic[/t]"><n.text/></n.default.>
                </text>
            </n.new_topic_link>
            </else>
            </n.if.is_root>
        </n.page_node.>
    </div>
</override_macro> 


The code
<n.if.is_root><then></then>
            <else>
             ......
 
will not permit that  link  on the main page.
Observatório de Astronomia de Vilatur - W. Herschel
Saquarema - RJ - Brasil
http://www.astronomia.pousadavilatur.com.br