User Tools

Site Tools


developers:geoclass:geoview:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developers:geoclass:geoview:start [2009/03/25 17:36]
jonyo created
developers:geoclass:geoview:start [2014/09/25 16:55] (current)
Line 15: Line 15:
 For this explanation, lets say in your addon, you wanted to alter the data used to display the "mainbody" template on a certain page. For this explanation, lets say in your addon, you wanted to alter the data used to display the "mainbody" template on a certain page.
  
-It happens that the "best place" to do that, would be in the [[developers/addons/core_events/start|Core Event]] **notify_display_page**.  See the Example addon documentation for more information on that core event.  We won't go over how to use core events here, instead we'll be skipping straight to how to manipulate the geoView template variables.+It happens that the "best place" to do that, would be in the [[developers:addons:core_events|Core Event]] **notify_display_page**.  See the Example addon documentation for more information on that core event.  We won't go over how to use core events here, instead we'll be skipping straight to how to manipulate the geoView template variables.
  
 First, wherever in your addon you are manipulating the geoView variables, you would first get an instance of the geoView class: First, wherever in your addon you are manipulating the geoView variables, you would first get an instance of the geoView class:
Line 99: Line 99:
 </code> </code>
  
-The //[_viewVars]// is what we are interested in here.  See that there is a variable in the above example that would be something like:+The //[_viewVars:protected]// variable print-out is what we are interested in here. 
 + 
 +See that there is a variable in the above example that would be something like:
 <code php>$view->_viewVars['vars']['category_id']</code> <code php>$view->_viewVars['vars']['category_id']</code>
  
Line 108: Line 110:
  
 From the print-out, a variable might be: From the print-out, a variable might be:
-[code php]$view->_viewVars['var1']['sub_var1']['sub_sub_var5'];[/code]+<code php>$view->_viewVars['var1']['sub_var1']['sub_sub_var5'];</code>
 Access the above like so: Access the above like so:
-[code php]$view->var1['sub_var1']['sub_sub_var5'];[/code]+<code php>$view->var1['sub_var1']['sub_sub_var5'];</code>
  
  
developers/geoclass/geoview/start.1238002580.txt.gz · Last modified: 2014/09/25 16:55 (external edit)