- Moderated by:
- Support
-
- rank:
-
Helper
- registered:
- February 2003
- Status:
- offline
- last visit:
- 01.12.08
- Posts:
- 193
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 -
Every time someone refers a new Zikulan to the SVN, God kills a kitten.
Visit ZikulaPlus.com for......PLUS! -
- rank:
-
Team Member
- registered:
- September 2006
- Status:
- online
- Posts:
- 1494
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:
-
Helper
- registered:
- February 2003
- Status:
- offline
- last visit:
- 01.12.08
- Posts:
- 193
I've been messing around with some module templates to get a tighter integration and it's a lot of hit and miss
--
- Darryl -
Every time someone refers a new Zikulan to the SVN, God kills a kitten.
Visit ZikulaPlus.com for......PLUS! -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 7720
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
