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

What I’d do:

public function rssDesc()
{
    $image = Html::img($this->file()->url());
    $text    = $this->text()->kt();

    return $image . $text;
}

This can of course be refined by passing an array of attributes to the Html::img() method or you can wrap it in inside a figure tag or whatever.

Read full topic


Viewing all articles
Browse latest Browse all 13

Trending Articles