Jahia Dev Forum > iPhone - Multi Channel...

0 (0 Good)
0 (0 Bad)

iPhone - Multi Channel Rendering

by  stefanrink »  2012/06/16 13:25

 

Hi,
 
since a few weeks i am developing a Bike-Configurator based on the Jahia CE and everthing works fine. Btw, Jahia is a great peace of software, Congratulations! But now i am stick on the "Multi channel rendering".
 
I followed the example in the "Multi Channel Rendering" Documentation letter by letter, except that i put the UserAgentFilter Configuration in "applicationcontext-renderer.xml" and not in "application-renderer.xml". But when i called the homepage with my iPhone i always get a "no render set for node : home" message. Is there same missing configuration or what could be the problem? 
 
Thank you for your help in advance!
Stefan
  • iPhone - Multi Channel Rendering
    2012/06/16 13:25

    stefanrink <p> &nbsp;</p> <div> Hi,</div> <div> &nbsp;</div> <div> since a few weeks i am developing a Bike-Configurator based on the Jahia CE and everthing works fine.&nbsp;Btw, Jahia is a great peace of software, Congratulations! But now i am stick on the &quot;Multi channel rendering&quot;.</div> <div> &nbsp;</div> <div> I followed the example in the &quot;Multi Channel Rendering&quot; Documentation letter by letter, except that i put the UserAgentFilter Configuration in &quot;applicationcontext-renderer.xml&quot; and not in &quot;application-renderer.xml&quot;. But when i called the homepage with my iPhone i always get a &quot;no render set for node : home&quot; message. Is there same missing configuration or&nbsp;what could be the problem?&nbsp;</div> <div> &nbsp;</div> <div> Thank you for your help in advance!</div> <div> Stefan</div>

  • Number of messages  4
    Registration date Jun 16, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: iPhone - Multi Channel Rendering

    by  shuber »  2012/06/18 08:22

    Hello Stefan, 

     

    Unfortunately there are a few problems in the documentation that were kindly corrected by Andy Saunders in another forum post http://www.jahia.com/cms/home/community/forum/jahia-user/jahia-65/problems-with-multi-channel-rend.html :
     
    1) It doesn't mention that the example shown is straight from the default configuration which is hidden away in jahia jar file. To override the default settings you need to change the priority value to something higher than the default. Changing it to 5 worked for us.
     
    2) It needs to be in a file named Jahia_xCM_v6.6.0.0/tomcat/webapps/ROOT/WEB-INF/etc/spring/servlet-applicationcontext-renderer.xml
     
    We got it working by doing the following:
     
    1) Copy the applicationcontext-renderer.xml file from the Jahia_xCM_v6.6.0.0/tomcat/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.0.0.jar into Jahia_xCM_v6.6.0.0/tomcat/webapps/ROOT/WEB-INF/etc/spring/servlet-applicationcontext-renderer.xml
     
    2) Edit the <bean class="org.jahia.services.render.filter.UserAgentFilter"> priority value to 5 (or something less than it already is.) i.e. :
     
     
    <property name="priority" value="5" />

    I should also mention that we are currently working on improving the multi-channel interface and back-end, and that some changes in the channel definitions will be required. These will be mentioned in the updated release information of course.

    Best regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: iPhone - Multi Channel Rendering

    by  stefanrink »  2012/06/18 10:03

    Hi Serge,

    thank you for your quick reply, but unfortunately the suggested changes did not  fix my problem. Same behaviour as before. When i call a page node i still get the  "no render set for node : home" message. But when i call a content node i can see the content of the "content node" but i am missing all the html (header, footer, etc) coming form my base template. Any Idea?

    Btw calling:
    currentResource.template  =>  prints out "default" and

    currentResource.templateType  => prints out to "html-iphone"


    Best regards
    Stefan

  • Re: Re: iPhone - Multi Channel Rendering
    2012/06/18 10:03

    stefanrink <p> Hi Serge,</p> <p> thank you for your quick reply, but unfortunately the suggested changes did not &nbsp;fix my problem. Same behaviour as before. When i call a page node i still get the &nbsp;&quot;<span style="color: rgb(102, 102, 102); font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 13px; line-height: 18px; ">no render set for node : home&quot; </span><span style="font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 13px; line-height: 18px; ">message. But when i call a content node i can see the content of the &quot;content node&quot; but i am missing all the html (header, footer, etc) coming form my base template. Any Idea?</span></p> <p> <span style="font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 13px; line-height: 18px; ">Btw&nbsp;</span><span style="font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 13px; line-height: 18px; ">calling:<br /> currentResource.template &nbsp;=&gt; &nbsp;prints out &quot;default&quot; and</span><br /> <span style="font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; font-size: 13px; line-height: 18px; ">currentResource.templateType &nbsp;=&gt; prints out to &quot;html-iphone&quot;</span></p> <p> <br /> Best regards<br /> Stefan</p>

  • Number of messages  4
    Registration date Jun 18, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: iPhone - Multi Channel Rendering

    by  shuber »  2012/06/18 10:10

    Hi Stefan,

    Are you doing your own template set ? In that case you should also have an iPhone template.jsp in a directory like this

    jnt_template/html-iphone/template.jsp

    You can look at our web or template-web-blue or template-web-space templates sets for examples of how we do this.

    Best regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: iPhone - Multi Channel Rendering

    by  stefanrink »  2012/06/18 11:20

    Hi Serge,

    yes of course, i have a template folder named  "jnt_template/html-iphone" witch inlcudes a template file named  "template.xyz-template.jsp". Renaming the template file to "template.jsp" has also no effect.

    Best regards
    Stefan 

  • Re: Re: Re: Re: iPhone - Multi Channel Rendering
    2012/06/18 11:20

    stefanrink <p> Hi Serge,</p> <p> yes of course, i have a template folder named &nbsp;&quot;jnt_template/html-iphone&quot; witch inlcudes a template file named &nbsp;&quot;template.xyz-template.jsp&quot;. Renaming the template file to &quot;template.jsp&quot; has also no effect.</p> <p> Best regards<br /> Stefan&nbsp;</p>

  • Number of messages  4
    Registration date Jun 18, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Re: Re: Re: iPhone - Multi Channel Rendering

    by  shuber »  2012/06/20 12:56

    Hello Stefan,

    Something seems wrong the the template setup. Here are a few suggestions : 

    - make sure you have a template set for the "home" page, you should not have an empty value here.

    - check the view for your "home" page template in the studio, make sure it matches the xyz-template.jsp and that there is a html-iphone rendering for that JSP

    - look at the way it is done in our templates/html-iphone/templates-web-space.jsp

    - do you have a template:module tag that specifies a view somewhere ?

    Do you have any more error output information, or maybe an example you could share ?

    Best regards,

      Serge Huber.

    Serge Huber (shuber)

    Number of messages  271
    Registration date
    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