Where can I find a list of the variables passed to themes? Like $GLOBAL, $preformat, and $info?
Thanks,
KevinM
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- nestormateo responded to »Fillters in Clip« 06:33 AM
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 03:19 AM
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
- mazdev responded to »zikula 1.3.3. and IE9« 19. 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
Variable passed to themes
-
- Rank: Expert
- Registered: Aug 20, 2002
- Last visit: Jan 12, 2010
- Posts: 1219
The only vars that are passed to the theme are in the argument list of the theme functions, i.e. themearticle() and themeindex() and $block in themesidebox(). $GLOBALS are all global vars defined elsewhere in PN.
To find out what's contained in one of the arrays, i.e. $preformat, just do:
HTH
-Shawn
--
Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress! -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
You can also find a link to a handy reference list in the post here:
Theme Guide: Tips fo…g and starter theme
For the "story" variables passed to themeindex/themearticle...
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info... -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 9
Abra, thanks for the code snippet..that helps.
Nate, It would be nice to have a reference list but your mentalbloc.net link is dead. I went the mentalbloc.net site and couldn't find any links to PN stuff. Could you please update the link in your (excellent) tutorial?
Thanks,
KevinM -
- Rank: Senior
- Registered: Sep 22, 2003
- Last visit: Oct 21, 2009
- Posts: 2774
Thanks for pointing that out, kmasaryk, figured it would happen sooner or later.
You can now find a list of story vars in section IV in the first post...
--
Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods
Cape Cod Travel Info...
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
