Modifying the group public profile

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

You can define which details will be displayed on group public profiles. The process is quite similar to modifying user public profiles described here. In the following example, you will learn how to add the Group ID field to the group public profiles.

 

Group public profiles display information from the Community_Group system table using an alternative form. In our case, it is the Display profile alternative form. We will have to modify the alternative form to achieve the required functionality. For more information about the Alternative forms concept, please refer to the Module Alternative forms chapter of Kentico CMS Developer's Guide.

 

1. Sign in to Site Manager (login administrator with blank password by default). Go to Development -> System tables and choose to Edit (Edit) the Group (Community_Group) system table.

 

commguide_clip0221

 

2. Switch to the Alternative forms tab and choose to Edit (Edit) the Display profile alternative form.

 

commguide_clip0222

 

3. Switch to the Fields tab, select GroupID from the list of available fields and check the Display attribute in the editing form check-box. Click OK.

 

commguide_clip0223

 

4. Switch to the Layout tab. We will place the GroupID field above the GroupAccess field. Place the cursor in the line with GroupAccess controls, right-click and choose Row -> Insert Row Before from the context menu.

 

commguide_clip0224

 

5. The former layout gets a bit scrambled by this action. We will need to make this right before we proceed. Delete the three empty cells highlighted in the screenshot below by placing the cursor in each of them, right-clicking and choosing Cell -> Delete Cells from the context menu.

 

commguide_clip0225

 

6. Now we have the layout as we want it, so we can proceed to adding the controls. Select GroupID from the Available fields list, place the cursor in the first empty cell and click Insert label. Highlight the entered text and make it bold, so that it looks the same as the other two labels. Place the cursor in the second empty cell and click Insert input. The result should look as in the screenshot below. Click Save to save the changes.

 

commguide_clip0226

 

7. Go to the live site now and view some group's profile. You should see the GroupID field as highlighted in the screenshot below.

 

commguide_clip0231

 

Page url: http://devnet.kentico.com/docs/5_5r2/communitysiteguide/index.html?modifying_the_group_public_profile.htm