Fork me on GitHub

Pagemaster : adding hook support : tutorial  Bottom

  • If you wish to add hook support for pagemaster

    First; activate the given hook for pagemaster , for instance pn_bbcode & pn_bbsmile

    Then , in the form's template of your publication, add this

    Code

    <!--[plainbbcode textfieldid=field]--> <!--[bbsmile textfieldid=field]-->


    In order to display the "bbcode" and "bbsmile" panel

    Then , in the display template of your publication,
    for each field of you publication, add this modifier "pnmodcallhooks"

    Code

    <!--[$field|pnmodcallhooks|pnvarprephtmldisplay]-->


    The goal is to display the tags by their formatted shape.

    That's all

    Notes : "field" represent one field of a given publication



    edited by: mumuri, Nov 15, 2008 - 06:40 AM

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