开发者

Drupal, How to change user profile html structure

开发者 https://www.devze.com 2023-01-08 20:31 出处:网络
I want to change defaultuser profile values to table. Could somebody tell how can I do this? I try create user-pr开发者_C百科ofile.tpl.php

I want to change default user profile values to table.

Could somebody tell how can I do this?

I try create user-pr开发者_C百科ofile.tpl.php

But after printing $profile I am getting already formatted values (dl)

Regards


You also have access to the variable $account in user-profile.tpl.php. This will have the raw data without markup. Make sure to clear the theme cache after adding a new .tpl file.

If you have the devel module try this code inside the tpl

<?php

dsm($account);

?>

Otherwise

<?php

print '<pre>'. print_r($account) .'</pre>';

?>
0

精彩评论

暂无评论...
验证码 换一张
取 消