开发者

Drupal, How to change user profile html structure

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜