Buck Anderson posted on June 01, 2009 09:29 :: 2344 Views

Step 1.
The first step is to create a new DotNetnuke page and name it Your Account.
In the DotNetNuke Control Console >> Page Functions >> Settings >> Permissions add the security roles that are allowed to view this page and save your changes.
Step 2.
Next we will add an instance of Xmod to this page.

Give this module the title of 'My Business Directory Listing'.

Step 3.
Next go to the module action menu >> Configure XMod Module and add the same form and templates that you are using on your Business Directory listings page.


Step 4.
On the Data Settings tab >> Filtering >> DNN Filter Options make sure to check the box for Show Only Current User's Records.
This an important step that allows Administrators to see all records but allows the logged in user to only have the ability to see and edit their own listing.

Step 5.
On the Display Settings tab we will add Header, Footer, and Message information.
This information will help your user understand the managing of their listing and show the Add Listing button.

Note: The Hide header if no records are found and Hide footer if no records are found checkboxes are left unchecked.
I have attached a text file to this article that you can download to get the actual code that I use for these sections.
Download code
Step 6.
On the Security Settings tab >> Security >> Roles That Can Add Records make sure to select the same roles that are allowed to add records on your main Business Directory listings page.

Save your changes.
Your listing management section will now look like this:

Note: If you prefer to only allow your listing clients to edit their listings from the Your Account page, you can now go to your main listings page and remove these users from the Security section and only allow administrators to add records on the listing page.
In a future lesson, I will show you how we add the Ventrian Subscription Tools module to the Your Account page.
Enjoy,
Buck