Welcome Guest, Not a member yet? Register   Sign In
Parser Plugin Question

The possibility to extend the parser with plugins is just awesome and one of my favorite feature.

So far for me, {+ singleTag +} and {+ pairTag +}Some tuff inside{+ /pairTag +} works nicely, but yet I have a problem as every versions seems to return nothing else but strings.

I would like to make a {+ pairTags +} behave like a <foreach> in order to keep the html inside the view instead of rendering it all inside the plugin's function. I know I can put the logic in the controller and have {entries}{title}{/entries} but that kind of plugin would work inside any parsed view, whatever the controller.

Something like:

{+ entries channel=blog limit=10 +}

    <h2>{+ title +}</h2>
    {+ body +}

{+ /entries +}

that would be like a Christmas gift ^^ 
how could i send variables inside a {+ pairTag +} instead of just a string?

Really? :/ Nobody have an idea on how to do that?

Theme © iAndrew 2016 - Forum software by © MyBB