Fork me on GitHub

Output  Bottom

  • Is there a way to store a reference to a Smarty plugin in a form submission, and parse that plugin data during the template output?

    For example, if I create a News article, with this content submission:

    Code

    Example text, using a plugin to convert text to bold, goes {bold}here{/bold}.


    I want to the final output to be:

    Example text, using a plugin to convert text to bold, goes here.

    Instead of:

    Code

    Example text, using a plugin to convert text to bold, goes {bold}here{/bold}.




    edited by: AllKnightAccess, datetimebrief
  • Look at bbcode. That's exactly what it's for. Tho you can't add new codes very easily (I think that's a pending feature however).

    --
    Home Page | Find on Facebook | Follow on Twitter
  • Okay, thanks for the reply. However, I should point out that I was only referring to "bold" as an example. That is not the Smarty plug-in I will be using.

    I want to be able to insert ANY Smarty plug-in and have that parsed. Nevertheless, I take a look at bbcode for that.
  • maybe MultiHook?
  • Perhaps you could look at pnrenderhook. It's part of this Cozi project here:
    http://code.zikula.org/mwxanthiathemes/

    I've used to put Smarty tags in pages or news content. Although it look pretty old it still works for me.
  • Thanks for everyone's help.

This list is based on users active over the last 60 minutes.