Joe Pruitt
Customers
Post Count:30
 |
| 22 Mar 2010 05:40 PM |
|
I'm trying to create a custom view that is just the "my groups" box on the user profile page. I tried to create a custom view with the contents of the MyGroupsMini.ascx file but that doesn't seem to work. Any ideas? -Joe |
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 22 Mar 2010 06:06 PM |
|
You want this to be displayed on the User profile page, but not part of the ProfileView template? |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Joe Pruitt
Customers
Post Count:30
 |
| 22 Mar 2010 11:45 PM |
|
No, We are looking to create a always visible bottom page menu that has various popups. One of them being a list of groups the current user belongs to. Think of it kind of like how Facebook does it with the chat widget at the bottom of the page that when you click on it brings up a list of your friends. In this case I'd like it to be the users groups. Ideally we'd like to include some of the welcome center module as well with new emails, alerts, etc in a separate section. That one I've got the template for, I just couldn't get the groups list to work.
-Joe
|
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 23 Mar 2010 08:38 AM |
|
Here is an example that I think might help. This is a custom view for "MyGroups". Notice the properties for UsersGroupsOnly and FilterByUserId
<active:groupslist id="ctlGroupsNew" filterbyuserid="[AS:SOCIALUSER:USERID]" runat="server" UsersGroupsOnly="True">
<customtemplate>
<asp:datalist runat="server" id="lstGrid" repeatdirection="Vertical" repeatlayout="table" width="100%">
<itemtemplate>
<table width="100%">
<tr>
<td width="85" align="center" valign="middle"><active:groupimage runat="server" id="imgGroup" imagename='[AS:GROUPINFO:GroupIcon]' imagesize='sm' imagealt='[AS:GROUPINFO:GroupName]' portalid='[AS:PORTALSETTINGS:PORTALID]' imageurl='' /></td>
<td width="100%">[AS:CONTROL:GROUPLINK]<br /><asp:literal id="litGroupDescription" Text='[AS:GROUPINFO:GroupDescription]' runat="server" /></td>
</tr>
</table>
</itemtemplate>
</asp:datalist>
</customtemplate>
</active:groupslist>
|
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
fatgeorge
Customers
Post Count:291
 |
| 23 Mar 2010 09:18 AM |
|
Will, how would I filter that custom view further to only display groups of a particular Group Type? |
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 23 Mar 2010 09:21 AM |
|
You should be able to just add GroupTypeId=XXX XXX is the number of the grouptypeid. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
fatgeorge
Customers
Post Count:291
 |
| 23 Mar 2010 10:17 AM |
|
I have tried to customise my ProfileView.ascx to add a another miniGroupsList to display a particular group type (Type=1) and modified the standard minigrouplist to only show group type = 0 (i.e. not specified so default group type). [active:groupslist id="ctlGroupsMini" pagesize="5" pagingenabled="false" usersgroupsonly="True" GroupTypeId=0 templatename="Profile/MyGroupsMini" runat="server" /] [active:groupslist id="ctlRegionsMini" pagesize="5" pagingenabled="false" usersgroupsonly="True" GroupTypeId=1 templatename="Profile/MyRegionsMini" runat="server" /] No group type filtering seems to take place. |
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 23 Mar 2010 12:23 PM |
|
When you have UsersGroupsOnly set it will ignore the GroupTypeId filter. I have already changed this and it will be included in the next release. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Ray Dixon
Customers
Post Count:199
 |
| 08 Jun 2010 12:23 AM |
|
How can I specify the sort order for the groups list? |
|
|
|
|
Matt Marlor
Customers
Post Count:375
 |
| 14 Jul 2010 08:11 PM |
|
Trying to do a skin object view of member groups. I've specified this in the skin:
<active:groupslist id="ctlGroupsUltraMini" pagesize="5" pagingenabled="false" filterbyuserid="[DNN:PROFILE:USERID]" usersgroupsonly="False" GroupTypeId="-1" templatename="Profile/MyGroupsUltraMini" runat="server" />
and this is the latest MyGroupsUltraMini:
<div>
<asp:datalist id="lstGrid" RepeatColumns="1" runat="server" RepeatLayout="Flow">
<itemtemplate>
<active:groupimage id="imgGroup" imagename='<%# Bind("GroupIcon") %>' imagesize='mini' imagealt='<%# Bind("GroupName") %>' portalid='<%# Bind("PortalId") %>' runat='server' />
</itemtemplate>
</asp:datalist>
</div>
Not sure what I'm doing wrong, but without the 'filterbyuserid' it will say "No groups found", and with it, it shows nothing at all. I also have the welcome center embedded in the skin, and this is working fine! |
|
| AuTechHeads - An Australian group for geeks. Visit us at
http://www.autechheads.com! |
|
|
Ben Thompson
Customers
Post Count:230
 |
| 14 Jul 2010 11:20 PM |
|
Matt, i have the same issue. It does work when you have that code in the profile view though. Must be missing something for it to work in a Custom view...
|
|
| www.itproject.com.au |
|
|
Matt Marlor
Customers
Post Count:375
 |
| 19 Jul 2010 06:28 AM |
|
What I would really love to do with this is, given the quick jump bar I feature in my skin (which has a link to our Groups section), for a click on this to display a popup AJAX menu listing groups the user is a member of; they could then click on it to go straight to the group. I'd settle for a dynamic list underneath though. Not sure I've fully understood how the views work yet; is the layout right from your perspective? |
|
| AuTechHeads - An Australian group for geeks. Visit us at
http://www.autechheads.com! |
|
|
Matt Marlor
Customers
Post Count:375
 |
|
Daniel Comp
Customers
Post Count:80
 |
| 13 Dec 2010 02:42 PM |
|
I've gotten as far as you did Matt, and got stuck likewise; but here's what worked for me:
< active:groupslist id="ctlGroupsMed" filterbyuserid="[AS:SOCIALUSER:USERID]" templatename="Profile/MyGroupsMed" GroupTypeId="-1" usersgroupsonly="True" runat="server" >< /active:groupslist >
I have the welcome center on the home page (visible to verified members role) using a 'custom view' of AS that has both the above 'My Groups" and the below "My Peers (friends)"
< active:memberslist id="ctlFriendsMed" pagesize="150" pagingenabled="false" Columns="6" friendsonly="True" approvedfriends="True" templatename="Profile/MyFriendsMed" runat="server" / >< /active:memberslist >
Thanks for your tips, guys. |
|
| the Enterprising Cycle™: decades of wisdom reduced to invaluable hours |
|
|
Matt Marlor
Customers
Post Count:375
 |
|
Scott Koon
Registered Users
Post Count:17
 |
| 03 Feb 2011 01:50 PM |
|
I can only get the GroupList to work in a custom view. I can't embed it in the skin or in the Welcome Center skin object. |
|
|
|
|
Jeff Blanks
Customers
Post Count:387
 |
|