Login  Register

Re: short and long descriptions

Posted by cadet1620 on Oct 25, 2011; 3:46am
URL: https://support.nabble.com/short-and-long-descriptions-tp6927296p6927457.html

There's likely a better way to do this, and I should have written a new macro to do the substitution, but since I only had one sub-forum that needed the alternate description I wrote it inline.

<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <table style="border-collapse:collapse;width:100%">
            <tr>
                <td id="forum-header" style="width:95%">
                    <h1 id="forum-title" class="app-title-[n.id/]"><n.subject/></h1>
                    <div id="description-box">
                        <n.mailing_list_information/>
++++++++++
                        <n.if.equal value1="[n.id/]" value2="3350163">
                            <then>
This is the very long winded description for the sub-forum with
node ID 3350163.  You can find the node ID by viewing the HTML
source for the sub-forum and searching for 'class="app-title-'
which is immediately followed by the node number.
                            </then>
                            <else><n.node_message_as_html/></else>
                        </n.if.equal>
----------
                        <n.node_message_as_html/>
==========
                    </div>
                    <span id="search-box" class="search-box" style="clear:both;white-space:nowrap">
                        <n.search_box/>
                    </span>
                </td>
            </tr>
        </table>
    </n.page_node.>
</override_macro>