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">flakstad@npolar.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff">Hi again Yogesh</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff">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" size="2" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff">Great that you got it working, grats!
;-)</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff">Cheers,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2" color="#0000ff">Paul</font></span></div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div dir="ltr" lang="en-us" 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 11:44<div class="im"><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 class="h5">
<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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>