Current RSS feed no longer includes text field

Hi folks,

Long time Kirby user here, but new to the forums. Kirby is so solid that I rarely think of checking on updates to the software. But in moving hosts recently I decided to upgrade to version 3. Everything has been great, but now my RSS feed no longer includes the text of each blog post. I currently get just a title and link

I’ve looked at some of the plugin options, but I was hoping a small tweak to my existing set up would work. I have the following in place:


Here are the contents of the snippet:


// defaults
if(!isset($descriptionExcerpt)) $descriptionExcerpt = false; 

// send the right header
header('Content-type: text/xml; charset="utf-8"');

// echo the doctype
echo '<?xml version="1.0" encoding="utf-8"?>';

<!-- generator="<?php echo c::get('feed.generator', 'Kirby') ?>" -->

<rss version="2.0" xmlns:content="" xmlns:wfw="" xmlns:dc="" xmlns:atom="">

    <title><?php echo (isset($title)) ? xml($title) : xml($page->title()) ?></title>
    <link><?php echo (isset($link)) ? xml($link) : xml(url()) ?></link>
    <generator><?php echo c::get('feed.generator', 'Kirby') ?></generator>
    <lastBuildDate><?php echo (isset($modified)) ? date('r', $modified) : date('r', $site->modified()) ?></lastBuildDate>
    <atom:link href="<?php echo xml(thisURL()) ?>" rel="self" type="application/rss+xml" />

    <?php if($page->description() || isset($description)): ?>
    <description><?php echo (isset($description)) ? xml($description) : xml($page->description()) ?></description>
    <?php endif ?>
    <?php foreach($items as $item): ?>
      	<?php if($item->link): ?>
      		<title><?php echo xml($item->title()) ?> <?php echo mb_convert_encoding('&rsaquo;', 'UTF-8', 'HTML-ENTITIES'); ?></title>
	      	<link><?php echo xml($item->link()) ?></link>
	    <?php else: ?>
	    	<title><?php echo xml($item->title()) ?></title>
		  	<link><?php echo xml($item->url()) ?></link>
		<?php endif ?>
      <guid><?php echo xml($item->url()) ?></guid>
      <pubDate><?php echo ($item->date()) ? date('r', $item->date()) : date('r', $item->modified()) ?></pubDate>
      <?php if(isset($descriptionField)): ?>
      <?php if(!$descriptionExcerpt): ?>
      <description><![CDATA[<?php echo kirbytext($item->{$descriptionField}) ?>]]></description>      
      <?php else: ?>
      <description><![CDATA[<?php echo excerpt($item->{$descriptionField}, (isset($descriptionLength)) ? $descriptionLength : 140) ?>]]></description>
      <?php endif ?>
      <?php endif ?>

    <?php endforeach ?>

And here are the contents of the template:


$articles = $pages->find('journal')->children()->visible()->flip()->limit(10);

snippet('feed', array(
  'link'  => url('journal'),
  'items' => $articles,
  'descriptionField'  => 'text'


Is there any reason why this would no longer work in Kirby 3?

c::get() does not exist anymore in Kirby 3. You might go for $kirby->option() instead: