Closed (fixed)
Project:
Profile 2
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2013 at 05:55 UTC
Updated:
11 May 2021 at 08:04 UTC
Jump to comment: Most recent
Comments
Comment #1
infines commentedComment #2
infines commentedI've sort of found a way to do this, will be writing documentation!
Comment #3
sylenz commentedGot the same problem - how to create a template for the edit-site?
I guess, i have to hook it in the template.php file but how can this be done?
Comment #4
infines commentedSo the initial issue of why this is so complicated is because the Profile2 form is attached to the user account settings form. There for there are a couple ways to skin this cat. If you want to change field sizes and text then I suggest Mustard Seed Medias screencast on hook_form_alter, which methods also work in template.php:
http://mustardseedmedia.com/podcast/episode53
If you're planning to do some drastic structural changes then I suggest learning about theming the user profile page. I accomplished this via setting up an if statement to detect which form was being displayed, the account settings form or profile2 form. If first detect the profile2 form and if it isn't then I print the account settings form. Here is my code:
I put this in my template.php file:
If anyone else has any better ideas, let me know.
Comment #5
blogook commentedthere is no other way than the suggested one in #44 ?
Comment #6
avpaderno