Can I have users edit custom page attributes in their edit profile page?
Permalink
I want users to be able to edit custom page attributes along with their user attributes in the edit profile page. In this scenario there would be company pages that only vary in what information is in the custom page attributes. This info is displayed by a custom page type. No other type of user editing or dashboard access is desired. I want be able to give multiple users or members access to edit this info.(i.e. two employees that work for the same company can edit company info.)
I have public profiles enabled. I am thinking I will create groups for each company and a company page. I am hoping to automate this when they enter their company name. I will only give access to edit if you are in the company group associated with a company page. I was hoping someone had done this before and could help me out. Or if you know of anything similar and could point me toward some example code that would be greatly appreciated.
Thanks
I have public profiles enabled. I am thinking I will create groups for each company and a company page. I am hoping to automate this when they enter their company name. I will only give access to edit if you are in the company group associated with a company page. I was hoping someone had done this before and could help me out. Or if you know of anything similar and could point me toward some example code that would be greatly appreciated.
Thanks
I don't know that this will work for what I want to do. I want to be able to edit the single page file - single_pages/profile/edit.php This would dynamically show just one company page that that is associated with that specific user and allow them to edit the page attributes for. I am not sure how to pull the specific page object in to the edit.php file.
I'm wondering why you think this needs to be done through 'single pages'. 'Single Pages' are used in special cases where there is only going to be one of them on your site (like a login page) but your idea sounds like there are many identical pages; one for each company. Why not just create a regular page (non 'single page') for each company. Then create a user group for that company and add employees from that company to the group. Then set the company page's editing permissions to the company group. This assumes Advanced Permissions is turned on.
Is there something I'm missing here?
UPDATE: I guess it's important to read the first line of your original question before I say silly things. You want employees to be able to make changes to a company page in a sort of 'unified profile page' so they don't have to visit the company page to make the edits. Hummm...
Is there something I'm missing here?
UPDATE: I guess it's important to read the first line of your original question before I say silly things. You want employees to be able to make changes to a company page in a sort of 'unified profile page' so they don't have to visit the company page to make the edits. Hummm...
Sorry if I wasn't very clear. :) Yes the company pages will be 'regular pages'. I just want access(get and set) the page attributes of those regular company pages in the single page 'edit profile'. this would create a 'unified profile page' like you said.
I am having trouble determining the best way to pull the page that is associated with the user to make an instance of the right company page object.
Thanks for all the help.
I am having trouble determining the best way to pull the page that is associated with the user to make an instance of the right company page object.
Thanks for all the help.
This isn't really a reply, more another question... I'm just getting started with C5 and this is important to me as well. (Noob alert!!)
Would it be possible, for example, to create a company page populated by custom fields, and then make those custom fields accessible for editing within the employees' profiles? I'm so new to this that I don't even know whether C5 *does* custom fields, so please forgive if my question isn't pertinent.
Would it be possible, for example, to create a company page populated by custom fields, and then make those custom fields accessible for editing within the employees' profiles? I'm so new to this that I don't even know whether C5 *does* custom fields, so please forgive if my question isn't pertinent.
You can definately create the company page and make the areas of the page editable for users belonging to a certain group. I.E a group called "company name" for instance!! As far as being able to edit this information from their profile page may be a struggle...
I think composer is best suited for this type of structured page entry. It makes it easiest for users to fill in those fields. Look on youtube for some composer video introductions like 5 mins to learn how it works.
http://www.concrete5.org/marketplace/addons/attribute-block/...