xlawrence    2005/04/26 15:28:48 CEST

  Modified files:        (Branch: JAHIA-4-1-BRANCH)
    src/view/jsp         blog_rss_2_0.jsp 
  Log:
  Added categories to RSS feed
  
  Revision  Changes    Path
  1.1.2.5   +23 -3     corporate_portal_templates/src/view/jsp/blog_rss_2_0.jsp
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/blog_rss_2_0.jsp.diff?r1=1.1.2.4&r2=1.1.2.5&f=h
  
  
  
  Index: blog_rss_2_0.jsp
  ===================================================================
  RCS file: 
/home/cvs/repository/corporate_portal_templates/src/view/jsp/Attic/blog_rss_2_0.jsp,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- blog_rss_2_0.jsp  26 Apr 2005 12:28:58 -0000      1.1.2.4
  +++ blog_rss_2_0.jsp  26 Apr 2005 13:28:48 -0000      1.1.2.5
  @@ -28,8 +28,8 @@
            <title><%=pageTitle%></title>
                <link><%=buffer.toString()%></link>
                <description>Blog: <%=pageTitle%></description>
  -             <language><%=jParams.getLocale().toString()%></language>
  -             <copyright>Copyright 2002-2005, Jahia Ltd - All rights 
reserved</copyright>
  +             <dc:language><%=jParams.getLocale().toString()%></dc:language>
  +             <dc:rights>Copyright 2002-2005, Jahia Ltd - All rights 
reserved</dc:rights>
                <generator>Jahia 4.1, http://www.jahia.org</generator>
   <%
   
  @@ -70,7 +70,27 @@
   String postDate = sdf.format(new Date(dateLong));
   %>
   
  -                     <pubDate><%=postDate%></pubDate>                        
    
  +                     <pubDate><%=postDate%></pubDate>
  +                     
  +<%
  +
  +Set set = 
Category.getObjectCategories(entry.getContentContainer().getObjectKey());
  +Iterator ite = set.iterator();
  +
  +while (ite.hasNext()) {
  +     Category cat = (Category)ite.next();
  +     String catName = cat.getTitle(jParams.getLocale());
  +            
  +     if (catName == null || catName.length() < 1) {
  +        catName = cat.getKey();
  +     }
  +        
  +%>
  +    <category><%=catName%></category> 
  +<%
  +}
  +
  +%>                       
                        <dc:creator><%=entry.getFieldValue("author", 
"")%></dc:creator>
                        <dc:date><%=postDate%></dc:date>
            </item>    
  

Reply via email to