I tried to dump the $context based on the code in this article:
http://learndotcms.com/2010/07/why-cont ... literally/
Supposedly, $context is the the collection of it all:
Code: Select all
<fieldset>
<legend>Page Context Debug ($!{context})</legend>
<ul>
#foreach($key in $context.getKeys())
<li><strong>$!{key} :</strong> $!{context.get($key)}</li>
#end
</ul>
</fieldset>
This will print out a nice list of all the variables that are set and available to you in Velocity, everything from page variables, to content variables
Code: Select all
<fieldset>
<legend>Page Context Debug ($!{Product})</legend>
<ul>
#foreach($prop in $Product.getKeys())
<li><strong>$!{key} :</strong> $!{Product.get($key)}</li>
#end
</ul>
</fieldset>
Does anybody have any insight on how to get this to work or what code generates listings of all the object properties on any given page?
As always, many thanks in advance for your help.