I'm trying to get my head around Drupal theming...
I have a tagadelic block with links of users' interests. I click on a link (eg surfing) and it shows a list of user profiles who like to surf.
How to I theme the user profile list? I tried copying node.tpl.php to profile-node.tpl.php but off course that changes the profile node page view as well.
To recap, I want to theme a user profile as a summary to show in taxonomy and search lists.
Any help please?
Thanks,
Steve
Problem:
I have links within my content with URLs such as:
/bible/book/john/3/16
/bible/book/genesis/1/2/3/4
etc
No actual nodes exist for any of these URLs, so what I need is a "catch all" mechanism that handles a path with the following regular expression:
/bible/book/(w+)/(d+)?/(d+)?/(d+)?/(d+)?
The process would then load the appropriate bible content based on the parameters in the URL.
Does any module exist that can do this, or what would I have to do to make it work?
Thanks,
Steve
Hi,
I've created a few custom user profile fields using the Content Profile module.
In my theme file I can view the new fields using the following code:
$var = $content_profile->get_variables('user_profile');
print_r($var);Now, I could access each field like this:
print $var['field_first_name'][0]['value'];But is this the "correct" way of getting the field value? Is there a standard/best practice way to do this?
Thanks,
Steve
I'm a relative newbie to Drupal.
I'm trying to create a custom user profile template. I've added the Content Profile module and created a few new fields (first name, last name, etc..). Next, I created a user-profile.tpl.php template, the problem now is figuring out how to access the custom fields within this template.
Doing a var_dump($user); or var_dump($account); does not reveal these custom fields.
So, how do I access these fields?
Thanks,
Steve