> Forums > Active Social > Themes and Templates > Call AS controls in other modules - Group types remove link
Last Post 16 Mar 2011 10:03 AM by Will Morgenweck. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Hazen Wilson
Customers
Hazen Wilson
Post Count:99

--
16 Mar 2011 12:21 AM
    • Active Social Version: 1.9.1
    • DotNetNuke Version: 4.9.5
    I'm kinda fishing here... not that good of an asp developer.. kinda new
    is it possible to call the controls, such as [AS:LINK:JoinGroup] from another module type in DNN.
    Reason being is i have 2 group types.  Leagues and Teams.  I want users to be able to join and leave Leagues...but have no access to the link to join/leave teams.
    I've learned to retrieve the groupid from the url and put it into a sql query to get the type from each group.. now i just need to exlude the link for the 'teams' using and if else statement.  If i can figure out how to do that to hide the link i think i'll have it....

    Or... what kind of changes will the templates take... can they be modified to behave the same way... 
    do asp.net cotrols work in the AS templates.

    Thanks
    Hazen
    www.hazeninteractive.com www.planetsocialsports.com www.rentalpropertyfind.com www.freeusedcartrader.com www.losangeles-activities.comwww.planetsportsgear.com
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    16 Mar 2011 10:03 AM
    You could create a custom view to load the groupaction control. However, since it wouldn't be used in the context of a group view it might be a little bit of a challenge. On the other hand, the actual action is all being done with javascript. You might be able to come with javascript based upon the default output to meet your needs. Here is what the group action control looks like:
    
    <active:groupaction id='ctlGroupAction' GID='[AS:GROUPINFO:GroupId]' GroupName='[AS:GROUPINFO:GroupName]' GroupAccessType='[AS:GROUPINFO:AccessType]' MemberStatus='[AS:GROUPINFO:MemberStatus]' runat='server' />
     


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Call AS controls in other modules - Group types remove link
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy