Welcome Guest, Not a member yet? Register   Sign In
Simpletags library help
#1

[eluser]Boris Strahija[/eluser]
Just a question. I have some code like this:
Code:
{kr:content:entries panel="blog" limit="10"}
    <h2>{title}</h2>
    {content}
{/kr:content:entries}

How exactly do I achieve this with Simpletags?
The call looks something like this:
Code:
$tags->parse($content, $view_data, array($this, 'parser_callback'));

What should the callback function return? If it returns an array it causes an error.

Is it even possible with Simpletags, when the parser encounters a tag like, it fetches the articles from the database and returns them to the loop.

Thank you.
#2

[eluser]Boris Strahija[/eluser]
Now answers yet Wink
Ok maybe I can do recursive parsing, just don't know if that will slow things down.




Theme © iAndrew 2016 - Forum software by © MyBB