Changeset 1267 for cpc/trunk/project/plugins/sfFeed2Plugin/README
- Timestamp:
- Aug 22, 2010, 5:13:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/plugins/sfFeed2Plugin/README
r367 r1267 36 36 == Installation == 37 37 38 * Install the plugin 38 Installation of the plugin differs on the version of symfony you are using. 39 40 * Install the plugin (symfony 1.0): 39 41 {{{ 40 42 $ symfony plugin-install http://plugins.symfony-project.com/sfFeed2Plugin 43 }}} 44 45 * Install the plugin (symfony 1.1+): 46 {{{ 47 $ symfony plugin:install sfFeed2Plugin 41 48 }}} 42 49 … … 197 204 {{{ 198 205 <?php decorate_with(false) ?> 199 <?php echo $feed->asXml( ) ?>206 <?php echo $feed->asXml(ESC_RAW) ?> 200 207 }}} 201 208 … … 453 460 } 454 461 }}} 462 463 By 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 467 To 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 }}}} 455 477 456 478 == TODO ==
Note: See TracChangeset
for help on using the changeset viewer.