<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>Hi Yogesh,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>Yup, thats me - hello! :)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>I'm not aware of any bugs with direct edit on IE7, and it
is very unlikely that such a bug would exist without the OpenCms community and
Alkacon addressing it (since IE7 is the most common browser these
days).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>Maybe it's a javascript setting in your browser or
something?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=283271312-12022010><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Yogesh
Mujumdar<BR><B>Sent:</B> 12. februar 2010 13:11<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> Re: [opencms-dev] include xmlpage content from
template<BR></FONT><BR></DIV>
<DIV></DIV>Thanks Paul, I missed it.<BR><BR>Direct edit does not work on IE7
on my machine. Is it me or its OpenCMS? Could not find much on Google or
OpenCMS docs.<BR><BR>Btw, this is you I guess - <A
href="http://npweb.npolar.no/english/person/flakstad">http://npweb.npolar.no/english/person/flakstad</A>
<BR><BR>Its nice to see people who help than just know the name and email
:)<BR><BR clear=all>-- Yogesh<BR><BR>Believe with all your heart that how you
live your life makes a difference. --Colin Beavan <BR><BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 5:18 PM, Paul-Inge Flakstad
<SPAN dir=ltr><<A
href="mailto:flakstad@npolar.no">flakstad@npolar.no</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi
Yogesh,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>As
described in the documentation, it should be sufficient just add
editable="true" to your include:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2><cms:editable /><BR>...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2><cms:include file="/site/path/to/tip-file.html" element="body"
editable="true" /></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>or its
scriptlet equivalent (I just copied this code from the OpenCms
documentation).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>-Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2>
<DIV class=im><B>From:</B> <A
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>On Behalf Of
</B>Yogesh Mujumdar<BR></DIV><B>Sent:</B> 12. februar 2010 12:40
<DIV>
<DIV></DIV>
<DIV class=h5><BR><B>To:</B> The OpenCms mailing list<BR><B>Subject:</B>
Re: [opencms-dev] include xmlpage content from
template<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>Thanks Paul.<BR><BR>Any way to make the tip direct editable? In
my template if I add <cms:editable/> in head and set editable="true"
to the included element from my elements jsp, the template itself opens up
for editing. I would like to edit the tip file from the page. This would
ease the process of adding tips.<BR><BR clear=all>-- Yogesh<BR><BR>Believe
with all your heart that how you live your life makes a difference.
--Colin Beavan <BR><BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 4:21 PM, Paul-Inge Flakstad
<SPAN dir=ltr><<A href="mailto:flakstad@npolar.no"
target=_blank>flakstad@npolar.no</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Hi
again Yogesh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>This
is equivalent to the suggestion I sent just as this message was arriving
in my inbox. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Great that you got it working, grats! ;-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff
size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2>
<DIV><B>From:</B> <A href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A> [mailto:<A
href="mailto:opencms-dev-bounces@opencms.org"
target=_blank>opencms-dev-bounces@opencms.org</A>] <B>On Behalf Of
</B>Yogesh Mujumdar<BR></DIV><B>Sent:</B> 12. februar 2010 11:44
<DIV><BR><B>To:</B> The OpenCms mailing list<BR></DIV><B>Subject:</B>
Re: [opencms-dev] include xmlpage content from
template<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV>
<DIV></DIV>Done!, its working now. This is what I did.<BR><BR>In the
elements file : <B>cms.include(tfilename, "body");</B><BR><BR>and
changed the <B>tip_file</B> property from
<B>/sites/default/TAIG/personal/MyTip1.html</B> to
<B>/TAIG/personal/MyTip1.html<BR><BR></B>Thanks everybody.<BR><BR
clear=all>-- Yogesh<BR><BR>Believe with all your heart that how you
live your life makes a difference. --Colin Beavan <BR><BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 3:32 PM, Yogesh
Mujumdar <SPAN dir=ltr><<A href="mailto:yogesh.mujumdar@gmail.com"
target=_blank>yogesh.mujumdar@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Eska,<BR><BR>That did not work.<BR><BR>I get the error
<BR><BR> javax.servlet.jsp.JspException: Error
reading resource from path
"/sites/default/TAIG/personal/MyTip1.html".<BR><BR>I changed the
element file code to : <BR>
<DIV><cms:template element="insider_tip"> <BR></DIV>
<DIV>
<%<BR>
CmsJspActionElement cms =
new CmsJspActionElement(pageContext, request,
response);
<BR></DIV>
String tfilename =
cms.property("tip_file");<BR>
cms.include(tfilename);<BR>
%><BR></cms:template>
<DIV><BR><BR><BR clear=all>-- Yogesh<BR><BR>Believe with all your
heart that how you live your life makes a difference. --Colin Beavan
<BR><BR><BR></DIV>
<DIV>
<DIV></DIV>
<DIV>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 3:21 PM, Eska <SPAN
dir=ltr><<A href="mailto:sven.kiesow@interone.de"
target=_blank>sven.kiesow@interone.de</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Hi
Yogesh,<BR><BR>It seems you set the tip_file property in a wrong
way. Do not set it to<BR>
<DIV><BR>/opencms/opencms/test/mytip.html<BR><BR></DIV>but to
something like<BR><BR>/sites/abc/test/mytip.html<BR><BR>Eska<BR>
<DIV>
<DIV></DIV>
<DIV><BR><BR>yogiam wrote:<BR>><BR>> Dear
All,<BR>><BR>> I have a simple template which is supposed to
show the page content. The<BR>> template has a Tips section
where I need to display tips. These<BR>> requirement<BR>> is
that the tips have to be editable at page level. Tips will be
HTML<BR>> content(*xmlpage*).<BR>><BR>> The solution that
I came across(*which does not work*) was to define a<BR>>
property called as *tip_file* for every page and specify a file
name which<BR>> needs to be shown as a tip. In the template I
get the property(*tip_file*)<BR>> of the page and make a URI to
the file using the context uri and<BR>> foldername<BR>> and
the tip filename. I then include this file in the template
with<BR>> include<BR>> method of CmsJspActionElement object.
When I view the file with<BR>> *tip_file*property set to
some<BR>> *xmlpage*, I get and error which says<BR>>
*"/opencms/opencms/test/mytip.html"*is not accessible, though it
is<BR>> available in the folder and is accessible if<BR>>
viewed independently.<BR>><BR>> Any other quick and smart
way of doing it?<BR>><BR>> -- Yogesh<BR>><BR>> Believe
with all your heart that how you live your life makes a<BR>>
difference.<BR>> --Colin Beavan<BR>><BR>><BR></DIV></DIV>
<DIV>> _______________________________________________<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"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR>><BR><BR></DIV><FONT
color=#888888>--<BR>View this message in context: <A
href="http://old.nabble.com/include-xmlpage-content-from-template-tp27560296p27561060.html"
target=_blank>http://old.nabble.com/include-xmlpage-content-from-template-tp27560296p27561060.html</A><BR>Sent
from the OpenCMS - Dev mailing list archive at
Nabble.com.<BR></FONT>
<DIV>
<DIV></DIV>
<DIV><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"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><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"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><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"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>