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 :)
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnRender Templates
-
- Rank: Softmore
- Registered: Feb 07, 2003
- Last visit: May 31, 2010
- Posts: 404
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
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: Softmore
- Registered: Feb 07, 2003
- Last visit: May 31, 2010
- Posts: 404
I've been messing around with some module templates to get a tighter integration and it's a lot of hit and miss -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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.
- Moderated by:
- Support
