Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Extending the partner profile example from the wiki View modes: 
User avatar
Member
Member
Pasha - 1/25/2013 11:33:04 AM
   
Extending the partner profile example from the wiki
I found this tutorial very helpful
http://devnet.kentico.com/docs/devguide/index.html?example_editing_partner_profile.htm

However, I'd like to expand on it, and I am just starting to learn Kentico.

What would be the best way to automate creation of new profiles? That tutorial had me create a user manually, as well as create the profile manually.

I would like the profile to be created as soon as the user is registered. Are pages really the best way to do that?

User avatar
Certified Developer 13
Certified Developer 13
josefd@kentico.com - 1/28/2013 2:56:37 AM
   
RE:Extending the partner profile example from the wiki
Hello,

Unfortunately, Kentico CMS does not feature this function. However you should be able to create a custom partner registration page that would create a partner page from template and assign the correct path to the user profile. You can find more information about creating documents using Kentico CMS API in our documentation.

Regards,
Josef Dvorak

User avatar
Member
Member
Pasha - 1/28/2013 9:22:14 AM
   
RE:Extending the partner profile example from the wiki
Ok, thanks.

What if I as the partner to create the document themselves? Can I restrict the amount of profiles they can create?

User avatar
Certified Developer 13
Certified Developer 13
josefd@kentico.com - 1/29/2013 4:29:55 AM
   
RE:Extending the partner profile example from the wiki
Hi,

Kentico CMS does not feature the ability to restrict the number of pages / documents a user is allowed to create. However, you can customize document creation behavior and count the number of pages the user has created, for example in a custom table.

Although creating the page through API upon registration, as I suggested earlier, still seems like an easier option.

Regards,
Josef Dvorak

User avatar
Member
Member
Pasha - 1/29/2013 8:59:03 AM
   
RE:Extending the partner profile example from the wiki
Using the API is the route I will take, thank you.

User avatar
Member
Member
Pasha - 1/30/2013 3:26:15 PM
   
RE:Extending the partner profile example from the wiki
I figure I should ask here, instead of starting a new thread.
What would be the best way to add a comment feature to the profile page?

I want each profile to have its own set of comments, only visible to a certain role.

User avatar
Certified Developer 13
Certified Developer 13
josefd@kentico.com - 1/31/2013 2:40:42 AM
   
RE:Extending the partner profile example from the wiki
Hello,

the easiest solution is placing a Message Board web part and setting it's visible property "Display to roles" to the correct user role.

Here you can find more information about Message Boards.

Regards,
Josef Dvorak

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/2/2013 10:55:08 AM
   
RE:Extending the partner profile example from the wiki
Pasha, my suggestion would be to create a custom table vs. a document type and dynamically display the data vs creating a new page for every partner. You can simply create an asxc control that will perform the insert into the custom table and display it back with a wildcard URL (/Partners/{partner}). This still allows you (in the CMSDesk) to be able to edit the data (if needed) but doesn't clutter up your document tree. You can also provide a simple button that allows to edit as well similar to how the link you provided shows. The difference is you don't have to grant that "partner" CMS Basic users rights. Also custom tables are faster in my opinion because they don't need to do any work with the document tree.

I'm in the process of creating a webpart that performs an insert into a custom table you specify, very similar to how a Biz Form works (display a page, email results, etc after). If you're interested let me know. I'm hoping to get it posted in the Marketplace soon.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/9/2013 8:52:05 AM
   
RE:Extending the partner profile example from the wiki
I've finally finished the webpart I mentioned and you can find it here. Hope this helps