English (United States) English (United Kingdom)
Thursday, March 11, 2010
archives

categories

articles
25

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)

3_Latest_Articles_Integrated

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: [/AM:CONTROLS:TAB:Articles]    
  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.

XMod_Custom_App_Integrated

 

I came across a ; he has basically created his own custom queries and templates using .

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.

BizModules_UMG_Friends_Photos

 

Once I have tweaked these a little more I will post the Active Social versions.

Comments

allane
# allane
28 March 2009 23:04
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?
host
# host
30 March 2009 12:04
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
allane
# allane
01 April 2009 11:06
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?

Post Comment

Only registered users may post comments.

Copyright 2010 fatgeorge