> Forums > Active Social > Themes and Templates > Can I call "groups" something different depending on type?
Last Post 24 Sep 2010 11:40 AM by mmoney. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
mmoney
Customers
mmoney
Post Count:150

--
24 Jul 2010 01:49 PM
    Hi,

    I'd like to change all references to the term "Groups" depending on the type of group being referenced. For example I have clubs and I have businesses - each uses groups with a different type set. I understand that I could replace the term "groups" in the sharedresources.resx file but is there a way to change the term "groups" for a specific type?

    Thanks
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:379

    --
    08 Aug 2010 08:09 PM
    The only way I know to do this atm is to add a new term to the sharedresources.resx and then include that term in your groupview template that is specific to the group type.
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Steven Webster
    Customers
    Steven Webster
    Post Count:1661

    --
    08 Aug 2010 08:17 PM
    mmoney - where do you want to display the group type name?
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    09 Aug 2010 05:28 PM
    I'd like to change the Browse Groups on the list view. The Create a New Group link next to the search field on the list view. The About This Group on the Info section of the groupview. The Edit Group link on the top of the GroupView page.

    Thanks again for taking the time to respond.
    Steven Webster
    Customers
    Steven Webster
    Post Count:1661

    --
    09 Aug 2010 10:30 PM
    All of the labels can be changed using the resource files for the module. On one of my sites I don't call them groups, but cliques. It was easy to change. You can edit them through the DNN language editor...or if you have direct access to the files on the site using notepad or Visual Studio, etc.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    fatgeorge
    Customers
    fatgeorge
    Post Count:291

    --
    10 Aug 2010 05:14 AM
    I think the question here is can we change the term/label 'Groups' based on the group type.

    So if I have 2 group types Customers and Suppliers.
    I configure a group view to display only Customer groups, I need to be able to change every instance of the label 'Group' to 'Customer' etc
    It would be great if there was a token we could use in the templates to display the group type's name or even to look it up from the resource file that way it could be multi-lingual.
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    10 Aug 2010 09:01 PM
    Yes. That's precisely what I was hoping for. Right now my Clubs and my Businesses all show as Groups. A bit confusing for users.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7666

    --
    11 Aug 2010 12:06 PM
    This is possible, but you have to be a little creative. You need to determine where it says "Group" then figure out how to change it. Lets start with the GroupsList. Since you have already segmented groups into types, might as well go a little further and create a new template for that type.
    1) Open the Template Editor in the Control Panel.
    2) Click New Template
    3) Click Create a Blank Template
    4) Choose Template Type: Groups
    5) Choose Save to: Portal
    6) Enter a template name and click save.

    The hardest part is getting the default template into the new one you just created. You can get this from DesktopModules/ActiveSocial/config/templates/groups/GroupsList.ascx. Copy and Paste the default template into your new blank template and click save. Now we need to start replacing the word "Groups".

    If you site doesn't support multiple languages then simply replace "[ RESX:BrowseGroups ]" with the word of your choice. You could even remove it completely if you wanted. If your site does support multiple languages then you need to create a new entry in the SharedResources.resx file using the DotNetNuke language tools.

    Next we need to replace Create New Group with something more suited for the current context. [AS:CONTROL:NEWGROUP] is actually just a token for this...
    
    <active:link text='[RESX:AddGroup]' tabid='[AS:SOCIALSETTINGS:GROUPSLISTTABID]' CssClass='CommandButton' params='[AS:PARAMKEY:VIEWTYPE]=[AS:VIEWS:GROUPADD]' visible='[AS:SECURITY:GROUP:CANCREATE]' runat='server' />
    

    You want to replace RESX:AddGroup the same we removed Browse Groups. Simply replace it with your own text or create a new language string.

    The really hard part is going to be altering the GroupAdd template. The GroupAdd Control doesn't support Social View Settings yet which means you can't have multiple templates. Your best option for this one is going to be changing the labels to be slightly more generic.

    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    11 Aug 2010 09:10 PM
    Ok. I will give it a shot and see what I can do.
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    24 Sep 2010 11:40 AM
    Hi,

    I tried to do what you suggested but am having the following problem. When I make a blank template assign it Groups and save it in Portal and call it grouplistclubs and then place the new template in there, it does not appear in the list of available tempates on the social settings page for grouplist. How do I get it appear so that I can select it?

    Thanks.
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Can I call "groups" something different depending on type?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy