@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
];
-
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 intext
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. -
If I try to set the
feed
to get the array coming from myallcontent
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?