Drupal Theming RSS Feed Views


/ Published in: PHP
Save to your folder(s)

This will build over time, and first be finish when I have all ressources and are satisfied with our corporate rss feed.


Copy this code and paste it in your HTML
  1. http://www.appnovation.com/drupal-theming-rss-feed-views
  2. http://laryn.kragtbakker.com/blog/drupal-views-cck-rss-theming
  3. http://drupal.org/node/550420
  4.  
  5. contemplate -> node-blog-rss.tpl.php
  6.  
  7. <?php
  8. /*
  9.  * Created on Apr 13, 2011
  10.  *
  11.  * To change the template for this generated file go to
  12.  * Window - Preferences - PHPeclipse - PHP - Code Templates
  13.  */
  14. $blog = node_load($node->nid);
  15. global $base_url;
  16. ?>
  17. <div>
  18. <div id="image">
  19. <?php
  20. global $base_url;
  21. print '<img src="' . $base_url . '/' . $node->field_blog_image[0]['filepath'] . '" alt="' . $blog->title . '" />';
  22. ?>
  23. </div>
  24. <div id="text">
  25. <?php print $blog->body; ?>
  26. </div>
  27. </div>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.