Tags: Categories:
Tips & Tricks
How To
Views: 2618
Print Following the excellent screencast from swebster I have been trying out integrating various 3rd party modules with Active Social Profile View.
The BizModules UMG & UVG are pretty straight forward as they have satellite modules designed to display user’s records and you can specify the querystring parameter quite easily.
Similarly, Ventrian’s NA Latest Articles satellite module is easy to implement, however I could see that I was rapidly running out of room for tabs on my ProfileView.
This site has 3 separate instances of NA, so I decided to place all 3 on 1 tab. (see below)
To do this simply use a table for layout and repeat the AM:moduleloader in your tab definition.
1: [AM:CONTROLS:TAB:Articles]
2:<table width="90%">
3:<tr>
4: <td style="text-align: center" width="30%" >Articles</td>
5: <td style="text-align: center" width="30%" >Recipes</td>
6: <td style="text-align: center" width="30%" >Tips</td>
7:</tr>
8:<tr>
9: <td width="30%" class="amtabcontent" style="vertical-align: top; text-align: left">
10: <active:moduleloader id="ctlCustomArticles" TID="493" MID="1121"runat="server" />
11: </td>
12: <td width="30%" class="amtabcontent" style="vertical-align: top; text-align: left">
13: <active:moduleloader id="ctlCustomRecipes" TID="493" MID="1122"runat="server" />
14:
15: </td>
16: <td width="30%" class="amtabcontent" style="vertical-align: top; text-align: left">
17: <active:moduleloader id="ctlCustomTips" TID="493" MID="1123"runat="server" />
18: </td>
19:</tr>
20:</table>
21:
22:
I have also integrated an XMod module showing a custom app for Reviews, XMod has the ability to filter a list template from a querystring parameter. I simply configure this instance to filter on the asuid parameter against the CreatedBy userid on the record.
I came across a very interesting post in the BizModule’s UMG forums from Mark Hollas; he has basically created his own custom queries and templates using Tressleworks’ SQLGridSelectedView module.
His examples are for the 5.3 version which has to be purchased, for the free 4.1 version a very slight syntax change needs to be made in the templates. (see BizModules forum for details).
He has also targeted Smart-Thinker’s OpenSocial modules, it was quite simple to modify the sql to use Active Social and produce a tab showing the latest photo’s from your friends.
Once I have tweaked these a little more I will post the Active Social versions.
3 Comments
You need to
register to comment.
-
AllanE
2 years 327 days ago
Ok great! Thanks a lot.
When adding the hidden field, it will only affect new records or edited records. Is that right?
Any ideas of how to save the userid in existing records?
Reply
-
SuperUser Account
2 years 329 days ago
Hi allane,
XMod does not expose the system fields CreatedBy, UpdatedBy, Created Date or Modified Date in the URL filtering list so you have to store these values in your own form fields which are then exposed to the URL filtering option.
On my XMod form I create a hidden field:
[input style="display:none" ref="reviewOwnerId"][default]{XMOD_UserId}[/default]
Then in my XMod URL parameter filters I specify:
reviewOwnerId = asuid
Reply
-
AllanE
2 years 331 days ago
Very cool! Maybe I'm blind, but where do you set "asuid" = the CreatedBy userid?
In "Configure XMod Module" -> "Filter Using URL Parameter" I can't find a way to set CreatedBy?
Reply