Closed dantz closed 4 years ago
both no. but you could create a pagemethod feedtext
and use that.
Kirby::plugin('my/page-methods', [
'pageMethods' => [
'feedtext' => function () {
return $this->template()->name() === 'video' ? $this->intro() : $this->text() ;
}
]
]);
I'm pulling feed contents from two different pages containing two different types of content:
$feed = page('videos','blog')
Is there a way to make all video posts use
'textfield' => 'intro',
while the blog posts use'textfield' => 'text',
?