pnRender Templates  Bottom

  • Suggestion for module developers. Please include a little documentation for pnRender templates. Maybe just a little list saying what each is for and where they're used.

    A little time on some basic documentation would go a long way :)
  • Good point,
    currently the ValueAddons module are well documented in the controllers (pnuser.php, pnadmin.php) and that helps a lot, but some comments in the template are Ok too icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • I've been messing around with some module templates to get a tighter integration and it's a lot of hit and miss
  • Some general tips on templates

    1) Adding the tag pndebug to any template will, for site admins, create a popup listing available template variables
    2) In all core modules and many 3rd party modules the URL index.php?module=[module]&type=[type]&func=[func] will use the template module_type_func.htm

    e.g. index.php?module=Example&type=admin&func=modifyconfig will use template example_admin_modifyconfig.htm

    Where the type parameter is not specified in the URL type is user, where func isn't specified func is main.

    If using shorturls (either file based or directory based) this second tip isn't so useful....

    -Mark

    --
    Visit My homepage and Zikula themes.

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