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

Both sides previous revision Previous revision
Next revision
Previous revision
developers:geoclass:geoview:start [2009/03/25 17:44]
jonyo Page moved from developers:geoview:start to developers:geoclass:geoview:start
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:geoview: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 100: Line 100:
  
 The //[_viewVars:protected]// variable print-out is what we are interested in here. The //[_viewVars:protected]// variable print-out is what we are interested in here.
- 
-<tip c n>**Note:** If you do the above on the home page of the site, there won't be anything in the _viewVars variable.  That is because the home page does not use the _viewVars currently as it has not yet been converted to use Smarty templates.  Since most sites do not use the (!MAINBODY!) on the home page, conversion to Smarty templates for that page is not a high priority but may happen at some point in a future release.</tip> 
  
 See that there is a variable in the above example that would be something like: See that there is a variable in the above example that would be something like:
developers/geoclass/geoview/start.1238003042.txt.gz · Last modified: 2014/09/25 16:55 (external edit)