Jaxel
Well-known member
I am fetching a bunch of threads (through another entity).
I am then iterating through the threads and printing out the content of the first post of each thread:
While the code properly parses the BbCode; it doesn't parse the attachments. Instead it just says
How do I parse the bbcode for attachments?
Code:
$articles = $this->finder('EWR\Porta:Article')->with('Thread')->fetch();
I am then iterating through the threads and printing out the content of the first post of each thread:
Code:
<xf:foreach loop="$articles" value="$article">
{{ bb_code($article.Thread.FirstPost.message, 'post', $article) }}
</xf:foreach>
While the code properly parses the BbCode; it doesn't parse the attachments. Instead it just says
View attachment 1
, with a link.How do I parse the bbcode for attachments?