PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Community ::  Feedback & Suggestions ::  pnRender Templates

Moderated by: Support Team

Bottom
pnRender Templates

  • Link to this postingPosted: 15.03.2008, 04:49
    Profile Homepage
    dks
    rank:
    pnSoftmore pnSoftmore
    registered:
     February 2003
    Status:
    offline
    last visit:
    07.05.08
    Posts:
    79
    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 icon_smile

    -----
    - Darryl -
  • Link to this postingPosted: 15.03.2008, 18:27
    Profile Homepage
    nestormateo
    rank:
    pnProfessional pnProfessional
    registered:
     September 2006
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    913
    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
  • Link to this postingPosted: 16.03.2008, 04:27
    Profile Homepage
    dks
    rank:
    pnSoftmore pnSoftmore
    registered:
     February 2003
    Status:
    offline
    last visit:
    07.05.08
    Posts:
    79
    I've been messing around with some module templates to get a tighter integration and it's a lot of hit and miss

    -----
    - Darryl -
  • Link to this postingPosted: 18.03.2008, 13:04
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    24.04.08
    Posts:
    7647
    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

Start ::  Community ::  Feedback & Suggestions ::  pnRender Templates

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke