Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Creating a output formatter plug-in

Is there a way to create an output formatter? I know that we can create plug-ins for the input formatter using something like

Gdn::FactoryInstall('DtFormatter', 'DtKeywordsPlugin', __FILE__, Gdn::FactorySingleton);

but if I understand correctly, that's the only formatter that is then used (I want to keep the current one) and it will only apply to new posts.

Basically want I want to do is look through posts for keywords and convert them into links. Is that possible?

Thank,
Allan

Best Answer

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP
    Answer ✓
    Yes this is possible. You don't need a formatter. Have a look at the quotes plugin for clues.

    Personally however you could do it with javascript if you pass the keywords. Less overhead. However I'm not giving programming lessons. Basic knowledge of jQuery, would do it.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

Answers

Sign In or Register to comment.