• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parser Plugin Question

#1
Hi,
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?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.