I'm sorry, I'm sure I missed this in my searching. I need to use the term description (or a term_fields) value as the feed title, rather than the term name. Is this possible? If so, how?

I have defined a views-view-views-rss-fields.tpl.php in my theme and have verified that it is getting called, but "get_defined_vars" returns nothing, so I can't even see if there is anything available to do a query with.

Comments

cerup’s picture

I would also like to know about this.

I'm trying to change the title link to something other than the node (specifically to the original author's page).

I was able to print the following variables using devel:

dsm(get_defined_vars()); (doing a straight print_r((get_defined_vars()); would error). To get the vars, I'm looking at the output in views (not the actual feed since they won't show there).

Array (
[0] => template_file
[1] => variables
[2] => template_files 
[3] => view
[4] => options
[5] => row
[6] => field_alias
[7] => zebra 
[8] => id 
[9] => directory 
[10] => is_admin 
[11] => is_front 
[12] => logged_in 
[13] => db_is_active 
[14] => user 
[15] => title 
[16] => link 
[17] => description 
[18] => item_elements )

Some of the array keys have values and in $variables['view'] there are fields, but when I try to print them I get

Object of class feedapi_handler_field_url could not be converted to string

So seems it might need to be converter first or possibly it's also not available?

If you figure this out, would be great to know.

dawehner’s picture

Status: Active » Fixed

dpm($view) will display everything you can imagine :)

If $view->field are all fields.
in $view->rendered_fields are all rendered fields
in $view-> is the non-safe result from mysql.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.