Start ::
Community ::
Feedback & Suggestions ::
pnRender Templates
Moderated by: Support Team
-
- rank:
-
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
-----
- Darryl - -
- rank:
-
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
-----
- Mateo T. -
Mis principios... son mis fines -
- rank:
-
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 - -
- rank:
-
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
