Ignore:
Timestamp:
Aug 22, 2010, 5:13:19 PM (11 years ago)
Author:
popeye
Message:

Mise à jour du plugin sfFeed2Plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/plugins/sfFeed2Plugin/README

    r367 r1267  
    3636== Installation ==
    3737
    38   * Install the plugin
     38Installation of the plugin differs on the version of symfony you are using.
     39
     40  * Install the plugin (symfony 1.0):
    3941{{{
    4042$ symfony plugin-install http://plugins.symfony-project.com/sfFeed2Plugin
     43}}}
     44
     45  * Install the plugin (symfony 1.1+):
     46{{{
     47$ symfony plugin:install sfFeed2Plugin
    4148}}}
    4249
     
    197204{{{
    198205<?php decorate_with(false) ?>
    199 <?php echo $feed->asXml() ?>
     206<?php echo $feed->asXml(ESC_RAW) ?>
    200207}}}
    201208
     
    453460}
    454461}}}
     462
     463By default, the aggregator sorts all items in reverse chronological order. If you wish to sort them in chronological order instead, add 'sort' => 'chronological' to the parameters array.
     464
     465=== Adding an image to the feed ===
     466
     467To add an image to the feed, use the sfFeedImage class
     468
     469{{{
     470$feed = new sfRss201Feed();
     471
     472$feedImage = new sfFeedImage();
     473$feedImage->setLink('http://www.example.org/images/feed-image.png');
     474$feedImage->setTitle('My Title');
     475$feed->setImage($feedImage)
     476}}}}
    455477
    456478== TODO ==
Note: See TracChangeset for help on using the changeset viewer.