[opencms-dev] How to edit text on a jsp page

Thierry Collogne tcollogne at hotmail.com
Tue Feb 21 08:17:18 CET 2006


That looks like a nice solution, but the way I understand it, I have to put 
all my code for the dynamic rendering in my template. Am i correct?


>From: "Corsin Camichel" <cocaman at gmail.com>
>Reply-To: The OpenCms mailing list <opencms-dev at opencms.org>
>To: "The OpenCms mailing list" <opencms-dev at opencms.org>
>Subject: Re: [opencms-dev] How to edit text on a jsp page
>Date: Tue, 21 Feb 2006 08:09:24 +0100
>
>Hi Thierry
>
>I've done it this way:
>* create a "dummy" template jsp, for example in
>modules/MODNAME/resources/jsptemplates/mypage.jsp
>* this mypage.jsp has some
><% cms.template("pageBody", "body", true);
>    cms.include(cms.getRequestContext().getUri().toString(), "body", true);
>%>
>
>* on mypage.jsp, set the properties template to your css and the
>template-elements to all the editable parts in mypage.jsp (in this case,
>body*|Body)
>* now you create a new page (mypage.html) and set the template property to
>/system/modules/MODNAME/resources/jsptemplates/mypage.jsp
>* your user can now edit this page as he wants and does not affect your jsp
>code
>* the lucene search indexes mypage.html and you can search for that and if
>you open it, the page is rendered with mypage.jsp
>
>Hope that helps
>
>Regards
>Corsin
>
>On 2/21/06, Thierry Collogne <tcollogne at hotmail.com> wrote:
> >
> > Hi all,
> >
> > I am using opencms 6.0.4. I have some jsp pages which consist of dynamic
> > rendered content, but also some static text.
> >
> > I now want the static text to be editable. Currently I have made an
> > xmlpage
> > which I include into the jsp with cms:include editable="true". This way 
>it
> > is possible to edit the text.
> >
> > But now when I search the page with lucene, I get the xmlpage as result,
> > not
> > the jsp page.
> >
> > My question is now: Is it possible to make text editable on a jsp, but
> > without the include? Perhaps by adding a div tag around the text you 
>want
> > to
> > be editable?
> >
> > Or is it possible to return the jsp page in the search results instead 
>of
> > the xmlpage?
> >
> > Does anyone know about this?
> >
> > Thank you,
> >
> > Thierry
> >
> >
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please 
>visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
> >
>
>
>
>--
>Corsin Camichel
>cocaman at gmail.com


>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list