I have slowly been working with Magnolia and setting up templates. I have 
created a template for a left side navigation menu. What I want to be able to 
do is use magnolia to be able to modify the menu with changes. I want this menu 
to show up on any new page I create. I have added the following line of code to 
my main page template to try to combine the menu with the page:

<c:import url="leftBarSectionTemplate.jsp"/>

 However the problem I have is that the menu comes up blank for each new page 
created. Naturally I don't want to re-create a new menu for every new page 
created. What I want to be able to do is to configure the menu once and have 
that menu show up on every page create. When I make a change to the menu I want 
the change to be shown accross all pages. I am sure there is a way to do this, 
but I can't find a good example on the wiki or handbook. Below is a snapshot of 
the main page template. The trouble I am having is near the end of the code 
(<c:import url="leftBarSectionTemplate.jsp"/>). This leftBarSectionTemplate.jsp 
is the left side menu I am trying to have included in every new page.:

<%@ taglib uri="cms-taglib" prefix="cms" %>
<%@ taglib uri="cms-util-taglib" prefix="cmsu" %>
<%@ taglib uri="JSTL" prefix="c" %>
<cms:init/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en-AU">
  <head>
    <meta http-equiv="content-type" content="application/xhtml+xml;
charset=UTF-8" />
    <meta name="author" content="haran" />
    <meta name="generator" content="haran" />

    <!-- Navigational metadata for large websites (an accessibility
feature): -->
    <link rel="top"      href="./index.html" title="Homepage" />
    <link rel="up"       href="./index.html" title="Up" />
    <link rel="first"    href="./index.html" title="First page" />
    <link rel="previous" href="./index.html" title="Previous page" />
    <link rel="next"     href="./index.html" title="Next page" />
    <link rel="last"     href="./index.html" title="Last page" />
    <link rel="toc"      href="./index.html" title="Table of contents" />
    <link rel="index"    href="./index.html" title="Site map" />

    <link rel="stylesheet" type="text/css"
href="/docroot/frankman1/css/gila-screen.css" media="screen"
title="Gila (screen)" />
    <link rel="stylesheet" type="text/css"
href="/docroot/frankman1/css/gila-print.css" media="print" />


    <title><c:out value="${actpage.title}"/></title>
  </head>

  <body >
                <cms:mainBar paragraph="frankman1PageProperties"/>
   <!-- ##### Header ##### -->

            <div id="header">
              <h1 class="headerTitle">
                <a href="./index" title="Browse to homepage">Gila 
<span>Two</span></a>
              </h1>
        
              <div class="subHeader">
                        <table>
                <span class="doNotDisplay">Navigation: </span>
                <a href="./index.html">Products</a> |
                <a href="./index.html">Solutions</a> |
                <a href="./index.html">Store</a> |
                <a href="./index.html">Support</a> |
                <a href="./index.html">Contact Us</a> |
                <a href="./index.html">About Us</a>
                        <cms:contentNodeIterator 
contentNodeCollectionName="contentHBar">
                                <cms:adminOnly>
                                        <tr>
                                                <td>
                                                        <cms:editBar/>
                                                </td>
                                        </tr>
                                </cms:adminOnly>
                                <cms:includeTemplate/>
                        </cms:contentNodeIterator>              
                <cms:adminOnly>
                                <cms:newBar 
contentNodeCollectionName="contentHBar" paragraph="hBarLink"/>
                        </cms:adminOnly>
                        </table>
              </div>
            </div>      
                <c:import url="leftBarSectionTemplate.jsp"/>
  </body>
</html>




----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to