Looking for an example tpl.php file to theme a view of users... Views2 Drupal6.
heather - July 21, 2008 - 01:49
I'm using the default profile, with custom fields, for example, firstname and lastname. I created a Member view, listing all my users, and i can see it at
views-view--Members.tpl.php
I can get all the content with
<?php print $rows ?>
But I want to format each field... so, I used print_r(get_defined_vars()); to find all my options... for example of my custom profile field "firstname" ... but this does not work:
<?php print $profile_values_profile_firstname_value; ?> How can you make a custom theme template for a list of users- to display data from custom profile fields? Does anyone have an example of pulling in custom fields into a user view?
