<br>
Hi <span class="gmail_quote"><b class="gmail_sendername">Christian,<br>
<span style="font-weight: bold;"><br>
<span style="font-weight: bold;">   Thanks for your prompt reply. My question is not an HTML question. I am using <br>
</span></span></b></span><br>
<span style="font-weight: bold;">out.print(cms.buildNavigationHead(cms.key("link.home"), "navtop", "navspacer"));</span><br>
<br>
to create dropdown menus. This creates menus for folder resides in
/sites/default/ folder, My question is very clear that how I can create
this for pages resides in my module.<br>
<br>
-Vikas<br>
<br>
<br>
<br>
<br><div><span class="gmail_quote">On 8/11/06, <b class="gmail_sendername">Christian Steinert</b> <<a href="mailto:christian_steinert@web.de">christian_steinert@web.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Vikas Gupta schrieb:<br>> Hi All,<br>><br>>   Here is complete details regarding my problem to create drop down<br>> menus. Please let me know if anyone have Idea<br>><br>> *<br>> Problem in creating dynamic menu: *
<br>><br>><br>><br>> CMS:               OPENCMS / Version: 6.0.2<br>><br>> Database:         MYSQL / Version: 5.x<br>><br>> Server:             Tomcat / Version: 5.0<br>><br>> JDK:                
1.5<br>><br>><br>><br>><br>><br>> *Scope of work:*<br>><br>> * *<br>><br>> *    *Create a dynamic menu on my template page. Menu should be editable<br>> later.<br>><br>> * *<br>><br>
> * *<br>><br>> *Queries:*<br>><br>> * *<br>><br>> *How many ways are there to create a dynamic menu which should be editable?*<br>><br>> * *<br>><br>> * *<br>><br>> *My approach:*<br>
><br>><br>><br>> I have created a module in opencms. Than I have created a jsp template<br>> in templates folder. Code that I am using to include a page for<br>> navigation is:<br>><br>><br>><br>
> /* This code is a part of my template */<br>><br>><br>><br>>  <tr align="right"><br>><br>>     <td width="114"<br>> style="background-color:#525252;height=36px;">&nbsp;</td>
<br>><br>>     <td style="background-color:#FFFFFF; height:195px;"><br>><br>>    <%<br>><br>>     cms.include("../elements/nav_head.jsp", null, cms.getProperties());<br>><br>
>    %><br>><br>>     </td><br>><br>>     <td width="115"<br>> style="background-color:#525252;height=36px;">&nbsp;</td><br>><br>>    </tr><br>>
<br>><br>><br>><br>><br>> In this template I have created a row which includes nav_head.jsp file<br>> and the code of nav_head.jsp file which I have written is:<br>><br>><br>><br>><br>><br>
> /* This code is a part of nav_head.jsp */<br>><br>><br>><br>> CmsTemplateNavigation cms = new CmsTemplateNavigation(pageContext,<br>> request, response);<br>><br>><br>><br>> // set the default property value to create head navigation menu items
<br>><br>> // true: all folders and files without the property<br>> "style_head_nav_showitem" explicitly set will be shown in head<br>> navigation menu<br>><br>> // false: no folder or file without the property
<br>> "style_head_nav_showitem" explicitly set will be shown in head<br>> navigation menu<br>><br>> cms.setHeadNavItemDefaultValue(true);<br>><br>><br>><br>> out.print(cms.buildNavigationHead
(cms.key("link.home"), "navtop",<br>> "navspacer"));<br>><br>><br>><br>><br>><br>><br>><br>> This creates a menu with following problems:<br>><br>><br>><br>
>    1. At first request, Menu is not displaying. While copying url and<br>>       run the page on another browser, It is displaying.<br>><br>><br>><br>>    2. Menu items are the folder and pages of located at /sites/default/
<br>>       and startFolder is always root ( / ).<br>><br>><br>><br>>       How can I change this startFolder to my folder?<br>><br>>       How can I add pages that exist in my module?<br>><br>>
<br>><br>><br>><br>> One more thing I want to know. I need to add images or some style to my<br>> main menu bar. Is it possible?<br>><br>><br>> Thanks & Regards<br>> Vikas Gupta<br>><br>>
<br><br>This is a Html question, not an opencms question.<br><br>You should read sites like <a href="http://alistapart.com">alistapart.com</a> and search there for<br>"dropdown" if you want to learn about menu-creation with
<br>HTML/CSS/Javascript.<br><br>Christian<br><br><br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit
<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br><br><br></blockquote></div><br>