[opencms-dev] To create a JSP Template Development based on s ome parameters
Chitra Prasad
chitrap at andale.com
Thu Jan 6 07:05:22 CET 2005
Hi
I really don't understand much of this as I am new to openCMS, if you could
give me an example to how to use this?
Do I use these methods in the jsptemplate or the jsp page that I create
using the template?
Regards
Chitra
-----Original Message-----
From: Thomas Maerz [mailto:thomasmaerz at gmx.de]
Sent: Thursday, January 06, 2005 3:11 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] To create a JSP Template Development based on
some parameters
Chitra Prasad <chitrap at andale.com> writes:
> e.g If one of the main product category is Books, the image shown is
> books.gif, where when this tab is selected then the image shown is
> books_selected.gif. Further under books, the second level of category is
> Fiction, then the main navigation shows books_seleted.gif and fiction.gif.
> If the fiction tab is selected, then the images to be displayed
> arebooks_selected.gif and fiction_selected.gif. Further to the fiction
> category being selected, the third level of navigation just shows a list
of
> fiction books.....
>
> Is there any way in CMS that i can access the directory name and then
change
> the image based on the directory under which it is stored. Is any other
> approach to this problem?
Take a look at the following methods:
CmsJspNavBuilder#getNavigationForFolder(String folder, int level)
CmsJspBean#getRequestContext()
CmsRequestContext#getUri()
CmsResource#getPathPart(String resource, int level)
CmsResource#getPathLevel(String resource)
Regards,
Thomas
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list