Quantcast
Channel: Add image from Files to description in RSS (using kirby3-feed)
Viewing all articles
Browse latest Browse all 13

Add image from Files to description in RSS (using kirby3-feed)

$
0
0

@bnomei This is the best post related to what I’m looking to do (alter text field output in the feed), so I’m adding this here:

With three main content areas in my site (with children), how do I have my feed contain all of my content without restructuring my site?

controllers/site.php:

return function($site, $page) {
    $contentChild1 = page('child1')->children()->listed();
    $contentChild2 = page('child2')->children()->listed();
    $contentChild3 = page('child3')->children()->listed();

    $allcontent = new Pages($contentChild1, $contentChild2, $contentChild3) 

    return [
    'contentChild1' => $contentChild1,
    'contentChild2' => $contentChild1,
    'contentChild3' => $contentChild1,
    'allcontent' => $allcontent
    ];
  1. When altering the feed options in the routes for the Feed plugin, I’d like to combine multiple page fields into one for the feed (ie.: I use the first image that is not in text field, author, categories, etc.). I gather you can do this using a snippet, but I need a more noob explanation on how this is possible.

  2. If I try to set the feed to get the array coming from my allcontent controller I’m not sure I can apply the options to it to get all those field outputs. I hope I’m making sense.

Could you help a noob out?

Read full topic


Viewing all articles
Browse latest Browse all 13

Trending Articles