Hi Benoit,

The Resource object is deprecated since 4.0.
So getting for example the current content can be done like this java wise: Content currentContent = MgnlContext.getAggregationState().getCurrentContent();

But in a template this should directly be possible over $ {content.someproperty}.

I hope this is some help.

Cheers
Christian


On Jul 27, 2009, at 16:47 , Grégory Joseph wrote:


Hi Benoit,

These templates were written against Magnolia 3.5, if memory serves right. It shouldn't be too complex to update them to 4.x if you have minimal templating experience (this could be your first;)) - see the templating guide for some tips. The offending line here simply needs to get the current paragraph/document.

hth,

-g

----- Original Message -----
From: Benoit Segaert
[mailto:[email protected]]
To: Magnolia User-List
[mailto:[email protected]]
Sent: Mon, 27 Jul 2009 16:24:50
+0200
Subject: [magnolia-user]  Excel Renderer



I deployed the Excel renderer module in Magnolia 4.1 and I received this
error:

The method getLocalContentNode() in the type Resource is not applicable for
the arguments (HttpServletRequest)
<%@ taglib prefix="cms" uri="cms-taglib" %>
<div class="excel">
<%
final Content paragraphNode = Resource.getLocalContentNode(request);
...
2009-07-27 15:49:41,460 ERROR info.magnolia.cms.taglibs.Include
  : Can't render paragraph template
/templates/excelrenderer/paragraphs/excel-dms.jsp
info.magnolia.module.templating.RenderException: Can't render paragraph
template /templates/excelrenderer/paragraphs/excel-dms.jsp
       at
info .magnolia .module .templating .paragraphs.JspParagraphRenderer.onRender(JspParagraphRenderer.java: 58)
       at
info .magnolia .module.templating.AbstractRenderer.render(AbstractRenderer.java:83)
       at
info .magnolia .module .templating .paragraphs .AbstractParagraphRenderer.render(AbstractParagraphRenderer.java:64)
       at
info .magnolia .module .templating .ParagraphRenderingFacade.render(ParagraphRenderingFacade.java:111)

Can you help me?

Benoît



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to