baffled by views 2 theming - can't access variables
andjules - November 6, 2009 - 20:33
I need to update a technique/function I developed for a D5 site to work in D6.
I embedded a view, got access to the array, checked it against some CSV data, and manually output a table combining the data.
(pretty cool, see it at: http://frontstreetcapital.com/funds-data)
With views 2, I'm getting stuck.
I've read a number of tutorials.
I've got a simple view built, data shows up in 'preview'
I can add a views-view-unformatted.tpl.php file to my theme, and this code works:
<?php
print("<div>hello world</div>");
?>but this code doesn't produce anything:
<?php
print_r(array_keys(get_defined_vars()), 1);
?>nor this:
<?php
dsm(array_keys($fields));
?>Not sure where to start. Do I need to add the full chain of custom templates, just to use one?
THANKS
