tag:help.rocksolidthemes.com,2012-07-23:/discussions/contao/61646-verwendung-filter-foreignkeyRockSolid Themes: Discussion 2023-08-05T14:53:49Ztag:help.rocksolidthemes.com,2012-07-23:Comment/487930292020-11-02T22:21:46Z2023-08-05T14:53:49ZVerwendung: Filter foreignKey<div><p>Produkt: Custom Elements Contao</p>
<p>I have a custom element the offers a list of all Contao News Headlines:<br>
'foreignKey' => 'tl_news.headline',</p>
<p>Now I wold like to filter and show only news, that have an Podcast. ('tl_news.podcast').</p>
<p>As far as I understand, I should do alike with 'options_filter'.<br>
Is that possible, and what would the code look like?</p>
<p>Thank you,<br>
Martin</p></div>mailtag:help.rocksolidthemes.com,2012-07-23:Comment/487930292020-11-03T09:21:46Z2020-11-03T09:21:46ZVerwendung: Filter foreignKey<div><p>Vielen Dank für Ihre Frage.</p>
<p>Eine <code>options_filter</code>-Option ist uns nicht bekannt. Für eine gefilterte Liste können Sie den <code>options_callback</code> benutzen und den gewünschten SQL-Query darin selbst ausführen.</p></div>RockSolid Themes