Posted by savithac on February 9, 2013 at 5:47am
I'm trying to theme the user/(uid)/edit page.
Step 1:
For a Zen subtheme, add the following code in the "template.php" file:
<?php
function MYTHEMENAME_theme() {
return array(
'user_profile_form' => array(
'arguments' => array('form' => NULL),
'render element' => 'form',
'template' => 'templates/user-profile-edit',
),
);
}
?>Step2:
Created user-profile-edit.tpl.php file in sites/all/themes/MYTHEMENAME/templates folder ,and
add the following code in the "user-profile-edit.tpl.phpa" file:
<?php print render($form['form_id']); dsm($form); ?> But I can't seem to get it work. What's wrong with mycode. Any Other solution.
How to resolve this problem?
Comments
What is your goal in
What is your goal in customizing the page?
I have to do align "user
I have to do align "user edit" page.For the purpose of allocate div tag within div tag (nested div).
How to overwrite user edit page in tpl file or any other solution.
For example:
<div id="mydesign">
<div id="mydesign1">Foo foo</div>
<div id="mydesign2">sample</div>
</div>
with regards
savithac
No sure what you mean by "I
No sure what you mean by "I have to do align "user edit" page." but to me that would imply a css solution. Your example on the other hand suggests you might want to look at the field group module which lets you group fields for both the form and node displays.