passing variables to views-list.tpl.php
point - March 27, 2008 - 18:35
Is there some way to pass a variable to theme-view.tpl.php?
My view should be themed slightly different depending on the pre-set input parameter. I am calling "views_build_view" to display that view, so it would be cool if parameters could be sent with that function.
Additional explanation:
First part of my view is themed in one way and the other half is themed the other way (boxes are narrower etc.), now I have the variable (number of view elements which are themed in one way) defined inside theme-view.tpl.php but would like to give my users an ability to set the variable easy way without having to deal with files on the server.

Have you seen: Advanced:
Have you seen: Advanced: Using views_build_view to control your own views? In the comments there is a discussion of parameter passing.
passing parameters to template page
They are discussing parameters passed to the view itself, ie. parameters needed to build the view itself and I need to pass parameters to the view template page.