Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Rss on your_library_site

1,217 views

Published on

  • Hi there! Get Your Professional Job-Winning Resume Here - Check our website! http://bit.ly/resumpro
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Rss on your_library_site

  1. 1. RSS on your website<br />Using Drupal <br />Views and <br />Aggregator/Feeds <br />(or Yahoo Pipes)<br />
  2. 2. Why RSS? – Start the Brainstorm <br />Community News Portal – Consolidate school or local media feeds<br />Reframe content from your catalog – RSS provided by your OPAC<br />Present your own twitter or Facebook posts, without a widget, or as a mashup<br />Create a ready-to-blog feed list<br />Legacy site import<br />
  3. 3. Drupal & RSS<br />Drupal is fine at producing RSS <br />Not as good at data mining from RSS import <br />Two basic import options: <br />Use Feeds module to create nodes (content)<br />Import via Aggregator (sources)<br />In both cases: organize using Views<br /> Both are CRON intensive, and imports need to expire <br />
  4. 4. Feeds Process<br />Select a content type to populatefrom our feed<br />Create one if necessary using CCK<br />Create a feed importer usingthe feed importer UI and our RSS source<br />Map the feed onto the content type<br />Import<br />Style and display<br />
  5. 5. Create a new content type with CCK<br />Adds function to the default content types management pagehttp://www.example.com/admin/content/types<br />Edit: Name and describe your new content type<br />Manage: Use Link submodule to add link content field<br />Can use one universal link field but will need to create unique label for each content type and use display fields to render label as link<br />Don’t forget to set user permissions for each new content type<br />
  6. 6. CCK adds the “Add Content Type” function to the Content Types Page http://www.example.com/admin/content/types<br />
  7. 7. Inside the Calendar Item content type – Link Submodule provides “link” option in field types<br />
  8. 8. Unique label can be reset in manage fields<br />
  9. 9. Down the page in global settings we turn off the title<br />
  10. 10. Finally, use display fields to hide the label as a plain text field and instead use the label as the link <br />
  11. 11. Feeds – Create Nodes from Stuff<br />Module creates “Feed importers” UI http://www.example.com/admin/build/feeds<br />Clone (or override) an importer and edit<br />Choose attach to nothing (attach to node alters the content type itself) and time to refresh<br />Using default templates, shouldn’t have to change fetcher, parser or processor<br />Use Node Processor to select content type, input format and settings to expire nodes<br />Use Mapping to assign fields to the chosen content type<br />
  12. 12. Inside a feed importer: You will need to adjust Basic Settings, Node Processor and Mapping. Note the link for Import Page, we’ll get back to that. <br />
  13. 13. Basic Settings lets you set name and description and refresh time – don’t choose content type here, choose standalone form (and import from the import page -- http://www.example.com/import)<br />
  14. 14. Node Processor Settings is where you pick the content type to map the feed to, also set node expiration and the option to update or replace nodes – updates maintain comments, but are more server intensive. Import format lets you choose full html, which will show images in feeds if they exist.<br />
  15. 15. Finally, use Mapping to specify what you want to go where, including that Link submodule back to the source.<br />
  16. 16. The Import page for feeds. Click on a feed to import and then you finally get to add the URL.<br />
  17. 17. And here is a view of the finished calendar content type on the left, next to a differently styled view of an aggregator feed on the right<br />
  18. 18. Aggregator – Ockham’s Razor<br />Why use many tools when one will do?<br />Part of Drupal 6 core<br />Simple to use<br />Creates Feed Aggregator UI <br />http://www.example.com/admin/content/aggregator/<br />Feeds are “sources,” not content, doesn’t allow comments<br />Style and filter through Views into blocks or pages<br />In settings, include <img> in allowed tags to have images included with feeds<br />
  19. 19. Aggregator: add feed, add category (here: news) and merge feeds by tagging them with the same category. <br />
  20. 20. Simple and all-in-one :<br />Create a new feed with title, URL, update and category<br />
  21. 21. Unstyled Aggregator block<br />The “b” is available to any user with blog permission. It opens their blog and inserts a copy of the node and a link to the feed.<br />
  22. 22. Views – Essential Drupal Module<br />Can format data how you like to see it<br />All views can be multi-use: block, page, even multi-page<br />Can use keyword filtering<br />Can use with aggregator feeds – choose aggregator when selecting information style at creation<br />Or node content (including imported via feeds module) – choose nodes at creation<br />*//Whichever you choose cannot be undone//*<br />
  23. 23. The main Views screen http://www.example.com/admin/build/views<br />
  24. 24. Inside an advanced View: multiple pages and blocks, each using different keyword filters. In this view: exposed filters, selected fields, page path, menu, and a header.<br />
  25. 25. What that view looks like on a finished, themed page<br />
  26. 26. A Word on Keyword Filtering<br />Yahoo Pipes is very useful for catching errors of input – can have redundant filters<br />Drupal logic is more exact<br />Can filter node title AND node body, but cannot filter node title OR node body<br />Each filter builds on previous (exclusionary)<br />Can assign taxonomy but cannot mine from content – couple of modules may exist ‘somewhere out there,’ or maybe you can write custom php code<br />Can Use Yahoo Pipes with Drupal, but third party reliance<br />
  27. 27. Exposed Filtering in Drupal<br />By exposing a filter, you can let your users search<br />Can set up more than one exposed filter: search by keyword and location<br />Very useful with content created and associated with taxonomies, users – can filter by categories and give restricted options<br />Not as useful if information is not associated<br />
  28. 28. Views – Style Matters<br />Unformatted gives unstyled list<br />HTML List – good for sidebars<br />Table gives attractive zebra striping (if your theme allows)<br />Grid gives raw blocks<br />Use fields to cherry pick elements you want: title, teaser, other data, leave out elements you don’t want (author, created date)<br />
  29. 29. A final word about CRON<br />RSS processes are server intensive and require consistent updates<br />If you don’t have the ability to set CRON on your server, add the Poormanscron module<br />Try to set your updates for meaningful but not server-taxing cycles.<br />If you don’t need your news to update more than once a day – don’t.<br />
  30. 30. Yahoo Pipes<br />Extremely powerful – can mashupimages, locations and create maps, use complex logic, more than just a text filter<br />Easy to use – visual, interactive, drag and drop<br />Once set up can easily be cloned and keywords just replaced<br />Very user friendly for keyword logic – allows multiple filters on multiple parts of same content: title and body<br />Downside is the pipes breaking and reliance on a third party<br />
  31. 31. Embedding Pipes in HTML<br />Pipes is a feature of any Yahoo account<br />Build your pipe and save it – don’t need to publish to use<br />Choose “Get this as a Badge” and “Embed”<br />Copy & Paste the code in your HTML page<br />Script will inherit most CSS of the page<br />Set up extra CSS to create zebra striping, blend frame background (badge customizing)<br />
  32. 32. An embedded Pipes Badge at http://www.myjcpl.org<br />
  33. 33. Links<br />Working with Pipes<br />Yahoo Pipes: http://pipes.yahoo.com<br />Pipes Help Forum: http://discuss.pipes.yahoo.com<br />Customizing Badges: http://pipes.yahoo.com/pipes/badgedocs<br />My Pipes: http://pipes.yahoo.com/mwidner<br />Working with Drupal<br />Drupal.org: http://www.drupal.org<br />Lullabot: http://www.lullabot.com<br />Learn By the Drop: http://learnbythedrop.com<br />My Drupal Site: http://www.peacekaat.com(link to JCPL Test Site)<br />
  34. 34. Modules we used<br />Feeds: http://drupal.org/project/feeds<br />CCK: http://drupal.org/project/cck<br />Link (CCK): http://drupal.org/project/link<br />Views: http://drupal.org/project/views<br />Aggregator (core): http://drupal.org/documentation/modules/aggregator<br />Dependent Modules <br />Ctools: http://drupal.org/project/ctools<br />Job Scheduler: http://drupal.org/project/job_scheduler<br />Extra<br />Poormanscron: http://drupal.org/project/poormanscron<br />

×