> Forums > Active Social > Themes and Templates > What is the Difference Between New Members Template and Latest Members View
Last Post 07 Apr 2011 05:11 PM by Ben - DotNetNuke. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Cliff Hammock
Customers
Cliff Hammock
Post Count:667

--
07 Apr 2011 08:23 AM
    • Active Social Version: 1.9.1
    • DotNetNuke Version: 5.6.1
    5.6.2 and 1.9.2

    I guess I will try another approach at solving my problem. In the AS Control Panel the Design area has Custom Views, Portal Templates and Theme Templates under Social Templates. I can see a link to create a New Template and I can copy from NewMembers, NewGroups, etc to create a new Template. But how can I create a new Custom View using the AS UI? When I look at Social View Settings for an AS instance I have to select from Views, not templates. I assume that the Views use the Templates for display but I am not totally sure. Can someone clarify how this works? I know I should know this but it is not clear at this point.

    Two issues.

    1. On the Custom Views if I click on Latest Members it doesn't populate. The only way I can get views to populate is to first click either the First or Last view in the list and it populates without issue. Then I can click a view between the first and last and they populate.

    2. I assigned the Latest Members Custom View to an AS instance and all I get are Resource Tags and not content. Here is what I mean by resource tags.

    [AS:CONTROL:LIST] [AS:CONTROL:LIST:HEADER][/AS:CONTROL:LIST:HEADER] [AS:CONTROL:LIST:ITEM]

    Thanks for any help on this. There is a Help Icon in the Control Panel but it pops up and gives me a 404 Error.

    Cliff
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    07 Apr 2011 10:08 AM
    First off, a View may use one or many templates. For example the Profile view uses one main template, and a lot of "sub-templates".

    To create a new custom view, follow these steps:

    Control Panel Design Page > New Template > Create a Blank Template > Save To: Custom View
    Select the type and name it whatever.

    This will give you a blank template, you can write your own or just copy and paste in code from somewhere else (including existing templates).


    1. Not sure what you mean.
    2. Here is some sample code that I have tested as working:

    <div style="white-space:nowrap;"><h2>Latest Membersh2>div>
    <active:memberslist id="ctlMembersList" OnlineOnly="False" SortColumn="0" SortDirection="DESC"  runat="server" PagingEnabled="False" PageSize="12" >
    <customtemplate>
    [AS:CONTROL:LIST]
        [AS:CONTROL:LIST:HEADER][/AS:CONTROL:LIST:HEADER]
        [AS:CONTROL:LIST:ITEM]
             <div class="aslistrow aslistrowitem">
                     <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
                            <tr>
                                <td valign="top">
                                    <div style="width:30px;text-align:center;">
                                        <a href="[AS:PROFILE:USERURL]">
                                            <img border="0" src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&uid=[AS:PROFILE:USERID]&h=24&w=24" title="[AS:PROFILE:DISPLAYNAME]" />
                                        a>
                                   div>
                                td>
                                <td valign="top" width="100%">
                                [AS:DISPLAYTEMPLATE]
                                    <div><a href="[AS:PROFILE:USERURL]">[AS:PROFILE:DISPLAYNAME]a>div>
                                     
                                    [/AS:DISPLAYTEMPLATE]
                                td>
                            tr>
                             
                        table>
                         
                    div>
        [/AS:CONTROL:LIST:ITEM]
        [AS:CONTROL:LIST:ALTITEM]
                 <div class="aslistrowalt aslistrowitem">
                      <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
                            <tr>
                                <td valign="top"><div style="width:30px;text-align:center;"><a href="[AS:PROFILE:USERURL]"><img border="0" src="[AS:HANDLER:PROFILEPIC]?PortalId=[AS:PORTALSETTINGS:PORTALID]&uid=[AS:PROFILE:USERID]&h=24&w=24" title="[AS:PROFILE:DISPLAYNAME]" />a>div>td>
                                <td valign="top" width="100%">
                                [AS:DISPLAYTEMPLATE]
                                    <div><a href="[AS:PROFILE:USERURL]">[AS:PROFILE:DISPLAYNAME]a>div>
                                    
                                 [/AS:DISPLAYTEMPLATE]
                                td>
                            tr>
                            
                        table>
                         
                    div>
        [/AS:CONTROL:LIST:ALTITEM]
        [AS:CONTROL:LIST:FOOTER][/AS:CONTROL:LIST:FOOTER]
        [AS:CONTROL:LIST:NORESULTS]No Members Found[/AS:CONTROL:LIST:NORESULTS]
         
         
    [/AS:CONTROL:LIST]
    customtemplate>
    active:memberslist>
    Cliff Hammock
    Customers
    Cliff Hammock
    Post Count:667

    --
    07 Apr 2011 04:53 PM
    Ben,

    Thanks for the detailed reply. But the code above definitely doesn't work for me as there are some issues with tags. Almost all the closing tags are missing. I am wondering if the code format here in AF is causing a lot of tags to drop as there are so many missing < brackets.

    I fixed all that after creating a new View and the result of injecting the module into my Mega Menu can be seen at...
    http://www.homeschoolcommunity.com/...mmary.aspx
    Just hover over the Community Content menu item. Need more formatting but I am just testing first.

    For views how do I control more parameters. Can you point me to the correct place in the KB if it is there. Does this just order members by a date and then pull in some? I see the Paging is False. Can I turn that TRUE and use PageSize to control how many are pulled back? I might only want a few for my purposes.

    For my 2. issue, this is what I mean. I click on Design and then Custom Views and see a list of views. But none of them except the First and Last view will load any content into the view editor window when I click them. BUT after I click either the First or Last view and it loads, then I can click on any view and they load. Is that clearer?

    I am using FF and have seen similar issues in the control panel editor for quite a while.

    I want to create numerous Custom Views to inject into my mega menu, so please point me to where I can get the best info. I see templates in the Design area that are named New Groups, etc. So do I create a view that references the template by copying the template code into the view?

    Thanks again Ben!
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    07 Apr 2011 05:11 PM
    Apparently our "code formatter" on the text editor ate some of the tags.

    Here is a KB article about the memberslist control: http://www.activemodules.com/active...t-control/

    I will investigate the issue with the template editor.

    If you look at the Custom View Examples pinned topic in this forum, you will notice that the groupslist control can be used to load a template with this parameter: TemplateName="Other/NewGroups". You could substitute custom templates depending on your needs.
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > What is the Difference Between New Members Template and Latest Members View
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy