Jahia Template Forum > adding news container...

0 (0 Good)
0 (0 Bad)

adding news container to template

by  erdem_ustun »  2011/06/07 20:08

I want to add news container like news page in Acme demo to my template.

I added like below to definitions.cnd

[web_templates:mytemplate] gt; jnt:page, web_templates:header, web_templates:footer
singleContainer newsTop (web_templates:introContainer) //added this
containerList news (web_templates:newsContainer [addMixin=
  • adding news container to template
    2011/06/07 20:08

    erdem_ustun I want to add news container like news page in Acme demo to my template.<br/><br/>I added like below to definitions.cnd<br/><br/>[web_templates:mytemplate] gt; jnt:page, web_templates:header, web_templates:footer<br/>singleContainer newsTop (web_templates:introContainer) //added this<br/>containerList news (web_templates:newsContainer [addMixin=

  • Number of messages  50
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  cflond »  2011/06/07 20:08

    Hello erdem_ustun,

    You are on the good way, could you please attach your full cnd file and optionally the related JSP ?

    Thanks in advance.

    Charles
  • Re: adding news container to template
    2011/06/07 20:08

    cflond Hello erdem_ustun,<br/><br/>You are on the good way, could you please attach your full cnd file and optionally the related JSP ?<br/><br/>Thanks in advance.<br/><br/>Charles

  • Number of messages  42
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  erdem_ustun »  2011/06/07 20:08

    my definitions.cnd file


    ------------------------definitions.cnd start -----------------------------------------------------

    lt;web_templates = 'http://www.jahia.org/jahia/web_templates/nt/1.0'
  • Re: adding news container to template
    2011/06/07 20:08

    erdem_ustun my definitions.cnd file<br/><br/><br/>------------------------definitions.cnd start -----------------------------------------------------<br/><br/>lt;web_templates = 'http://www.jahia.org/jahia/web_templates/nt/1.0'

  • Number of messages  50
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  cflond »  2011/06/07 20:08

    It seems to be good...

    Do you have an exception in the Tomcat Console ?

    Is it possible for you to attach your set of templates to the topic ?
    It is easier to find the problem when I execute the code directly.

    Thanks !

    Charles
  • Re: adding news container to template
    2011/06/07 20:09

    cflond It seems to be good...<br/><br/>Do you have an exception in the Tomcat Console ?<br/><br/>Is it possible for you to attach your set of templates to the topic ? <br/>It is easier to find the problem when I execute the code directly.<br/><br/>Thanks !<br/><br/>Charles

  • Number of messages  42
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  erdem_ustun »  2011/06/07 20:09

    Charles in mytemplate.rar there is my definitions.cnd file and the folder contains my template files.

    and in jahia.log files. These lines below are written:

    2010-07-19 17:03:44,343: ERROR [http-8080-1] ErrorLoggingFilter, org.jahia.bin.errors.ErrorLoggingFilter: User message=Error while processing request, System message=Exception in processing pipeline, root cause:null
    org.jahia.exceptions.JahiaException: User message=Error while processing request, System message=Exception in processing pipeline, root cause:null root cause=java.lang.NullPointerException
    at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:110)
    at org.jahia.bin.JahiaAction.execute(JahiaAction.java:91)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:99)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.jahia.bin.Jahia.process(Jahia.java:1575)
    at org.jahia.bin.Jahia.service(Jahia.java:869)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:56)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
    at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
    at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jahia.bin.filters.ResponseCacheControlFilter.doFilter(ResponseCacheControlFilter.java:110)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NullPointerException
    at org.jahia.data.containers.JahiaContainerSet.ensureContainerList(JahiaContainerSet.java:1665)
    at org.jahia.data.containers.JahiaContainerSet.getContainerList(JahiaContainerSet.java:1253)
    at org.jahia.services.containers.JahiaContainersBaseService.buildContainerStructureForPage(JahiaContainersBaseService.java:269)
    at org.jahia.services.containers.JahiaContainersBaseService$$FastClassByCGLIB$$bd246c24.invoke(lt;generated
  • Re: adding news container to template
    2011/06/07 20:09

    erdem_ustun Charles in mytemplate.rar there is my definitions.cnd file and the folder contains my template files.<br/><br/>and in jahia.log files. These lines below are written:<br/><br/>2010-07-19 17:03:44,343: ERROR [http-8080-1] ErrorLoggingFilter, org.jahia.bin.errors.ErrorLoggingFilter: User message=Error while processing request, System message=Exception in processing pipeline, root cause:null<br/>org.jahia.exceptions.JahiaException: User message=Error while processing request, System message=Exception in processing pipeline, root cause:null root cause=java.lang.NullPointerException<br/> at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:110)<br/> at org.jahia.bin.JahiaAction.execute(JahiaAction.java:91)<br/> at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)<br/> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)<br/> at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:99)<br/> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)<br/> at org.jahia.bin.Jahia.process(Jahia.java:1575)<br/> at org.jahia.bin.Jahia.service(Jahia.java:869)<br/> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.jahia.bin.filters.jcr.JcrSessionFilter.doFilter(JcrSessionFilter.java:56)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)<br/> at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)<br/> at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)<br/> at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.jahia.bin.filters.ResponseCacheControlFilter.doFilter(ResponseCacheControlFilter.java:110)<br/> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br/> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br/> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)<br/> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br/> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br/> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)<br/> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<br/> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)<br/> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br/> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br/> at java.lang.Thread.run(Thread.java:619)<br/>Caused by: java.lang.NullPointerException<br/> at org.jahia.data.containers.JahiaContainerSet.ensureContainerList(JahiaContainerSet.java:1665)<br/> at org.jahia.data.containers.JahiaContainerSet.getContainerList(JahiaContainerSet.java:1253)<br/> at org.jahia.services.containers.JahiaContainersBaseService.buildContainerStructureForPage(JahiaContainersBaseService.java:269)<br/> at org.jahia.services.containers.JahiaContainersBaseService$$FastClassByCGLIB$$bd246c24.invoke(lt;generated

  • Number of messages  50
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  cflond »  2011/06/07 20:09

    Hi,

    Is it possible to have the complete set ? As a war file or a zip file with the full directory ?

    In fact I want to try to deploy your set of templates to debug it quickly.

    Thanks in advance 8-)

    Charles
  • Re: adding news container to template
    2011/06/07 20:09

    cflond Hi,<br/><br/>Is it possible to have the complete set ? As a war file or a zip file with the full directory ?<br/><br/>In fact I want to try to deploy your set of templates to debug it quickly.<br/><br/>Thanks in advance <!-- s8-) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8-)" title="Cool" /><!-- s8-) --> <br/><br/>Charles

  • Number of messages  42
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  erdem_ustun »  2011/06/07 20:09

    I don't use Eclipse or any template to develop my template. I make all operations by a text editor in jsp, cnd css files. So I can't send the war file of my project. Can you test it any jahia template if you understand my purpose. I want to use news container in any page without news template page. I want to add my any page newscontainer to add and view news. I only made changes in the files that I sent you. You can test it by using them in Jahia Acme demo page I think.

    The reason not using Eclipse is I couldn't success to transfer Jahia into Eclipse and work in it.

    Thank you in advance.
  • Re: adding news container to template
    2011/06/07 20:09

    erdem_ustun I don't use Eclipse or any template to develop my template. I make all operations by a text editor in jsp, cnd css files. So I can't send the war file of my project. Can you test it any jahia template if you understand my purpose. I want to use news container in any page without news template page. I want to add my any page newscontainer to add and view news. I only made changes in the files that I sent you. You can test it by using them in Jahia Acme demo page I think. <br/><br/>The reason not using Eclipse is I couldn't success to transfer Jahia into Eclipse and work in it.<br/><br/>Thank you in advance.

  • Number of messages  50
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: adding news container to template

    by  cflond »  2011/06/07 20:09

    Hello erdem_ustun ,

    Sorry for the delay, I just developed an example that reproduces your needs and it works fine. Here is the idea based on the web templates example :

    1- Add the containerList definition yo your template (in my case simple) :

    [web_templates:simple] gt; jnt:page,web_templates:navigation
    containerList mainColumn_box (jnt:box [addMixin=
  • Re: adding news container to template
    2011/06/07 20:09

    cflond Hello erdem_ustun ,<br/><br/>Sorry for the delay, I just developed an example that reproduces your needs and it works fine. Here is the idea based on the web templates example :<br/><br/>1- Add the containerList definition yo your template (in my case simple) :<br/><br/>[web_templates:simple] gt; jnt:page,web_templates:navigation<br/>containerList mainColumn_box (jnt:box [addMixin=

  • Number of messages  42
    Registration date Jun 7, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page