bolt / bolt

Bolt is a simple CMS written in PHP. It is based on Silex and Symfony components, uses Twig and either SQLite, MySQL or PostgreSQL.
MIT License
4.16k stars 809 forks source link

rss_safe() should be able to take more than one argument. #1457

Closed bobdenotter closed 10 years ago

bobdenotter commented 10 years ago

See:

{{ record.rss_safe('body')|raw }}
GwendolenLynch commented 10 years ago

app/src/Bolt/Content.php

public function rss_safe($field = '', $excerptLength = 0)

/app/extensions/RSSFeed/assets/rss.twig:

{{ record.rss_safe('body', content_length)|raw }}

Or am I missing the point of what argument is needed?

bobdenotter commented 10 years ago

I want to have both the teaser and the body in the output CDATA tag:

{{ record.rss_safe('teaser,body')|raw }}

GwendolenLynch commented 10 years ago

:+1: