Login  Register

Re: app_body_header

Posted by Pedro on Jun 25, 2013; 11:33pm
URL: https://support.nabble.com/app-body-header-tp7584955p7584990.html

Sorry, I missed one slash. The correct code is:
<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <div id="forum-header">
            
            <n.comment.>    
                <n.if.is_root>  
                    <then>  
                        <div id="harvey_img">  
                            <n.comment.>    
                                <a href="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif">  
                                    <img alt="NY Radar" style="border-width:0px 1px 1px 0px; border-style : solid; border-color: black" src="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif"/>                    
                                </a>  
                            </n.comment.>  
                            <n.comment.>    
                                <p style="width: 125x; text-align:center; border: solid black 2px; padding:20px 10px;">How to<br/>  
                                    <a href="http://forum.nyskiblog.com/Forum-Guide-Embed-a-Video-td1672058.html"><b>Embed a Video</b></a>.</p>  
                            </n.comment.>                
                        </div>  
                    </then>  
                </n.if.is_root>  
            </n.comment.>
            
            <h1 id="forum-title" class="app-title-[n.id/]"><n.subject/></h1>
            <div id="description-box">
                <n.mailing_list_information/>
                <n.node_message_as_html/>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box/>
            </div>
        </div>
    </n.page_node.>
</override_macro>
It won't show anything. If you want to show the img, remove the comment tags like this:
<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <div id="forum-header">
           
                <n.if.is_root>  
                    <then>  
                        <div id="harvey_img">  

                                <a href="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif">  
                                    <img alt="NY Radar" style="border-width:0px 1px 1px 0px; border-style : solid; border-color: black" src="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif"/>                    
                                </a>  
    
                            <n.comment.>    
                                <p style="width: 125x; text-align:center; border: solid black 2px; padding:20px 10px;">How to<br/>  
                                    <a href="http://forum.nyskiblog.com/Forum-Guide-Embed-a-Video-td1672058.html"><b>Embed a Video</b></a>.</p>  
                            </n.comment.>                
                        </div>  
                    </then>  
                </n.if.is_root> 
            
            <h1 id="forum-title" class="app-title-[n.id/]"><n.subject/></h1>
            <div id="description-box">
                <n.mailing_list_information/>
                <n.node_message_as_html/>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box/>
            </div>
        </div>
    </n.page_node.>
</override_macro>
If you want to show the notice, remove like this:
<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <div id="forum-header">
           
                <n.if.is_root>  
                    <then>  
                        <div id="harvey_img">  
                            <n.comment.>    
                                <a href="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif">  
                                    <img alt="NY Radar" style="border-width:0px 1px 1px 0px; border-style : solid; border-color: black" src="http://pro.accuweather.com/nx_mosaic_640x480c/sir/inmasirny_.gif"/>                    
                                </a>  
                            </n.comment.>  

                                <p style="width: 125x; text-align:center; border: solid black 2px; padding:20px 10px;">How to<br/>  
                                    <a href="http://forum.nyskiblog.com/Forum-Guide-Embed-a-Video-td1672058.html"><b>Embed a Video</b></a>.</p>  
          
                        </div>  
                    </then>  
                </n.if.is_root> 
            
            <h1 id="forum-title" class="app-title-[n.id/]"><n.subject/></h1>
            <div id="description-box">
                <n.mailing_list_information/>
                <n.node_message_as_html/>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box/>
            </div>
        </div>
    </n.page_node.>
</override_macro>
My test forum.