> Forums > Active Social > Themes and Templates > Custom View vs Custom Template
Last Post 29 Nov 2010 04:16 PM by Daniel Comp. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Jango
Registered Users
Jango
Post Count:7

--
28 Jun 2010 05:45 PM
    Can someone please explain the difference between a custom template & custom view?

    In addition I don't understand how a custom view knows which custom template or any
    template to load for that matter.

    I've read all of the documentation under the knowledge base and can't find much information
    regarding the relationship between Custom Views & Templates.

    Tags: custom views
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    28 Jun 2010 06:09 PM
    I don't believe the documentation has been updated to explain the new template manager that was introduced in AS 1.6. We will get that updated tomorrow for the 1.7 release. In the meantime, let me try and give you a simple answer.
    A custom template is a template that you would create that replaces one of the default templates provided with the installation package. If you wanted to completely change the layout for the MembersList you would create a custom template. Here is a quick video that provides the steps for creating a custom template.
    http://screencast.com/t/ODk4YmFmZWM

    A custom view allows for greater control, but can be a little more complicated. A custom view doesn't have access to the Social View Settings as a custom template does. A custom view also allows you to load other asp.net controls or even 3rd-party modules using the module loader control. Here is a quick video showing how to create a custom view using the the event template I posted earlier.
    http://screencast.com/t/YzNhMTFmZT

    Hope that helps.

    Will

    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    fatgeorge
    Customers
    fatgeorge
    Post Count:291

    --
    30 Jun 2010 08:17 AM
    Hi Will,

    What would be the best way to create a template based on your own sql query/datasource that would still allow access to the AS controls etc?

    Is there anything in the api to help with this?

    I am specifically thinking of ways to incoporate my geodata with standard AS data to provide for eample a list of groups in a 20 mile radius of my profile addess.

    I can do the sql and can even present it using one of the 3rd party modules such as sql grid etc.

    I am looking for an AS way to do it.
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    29 Nov 2010 02:19 AM
    So... do I understand correctly that a only 1 Theme can be chosen for any/all AS modules?
    And... any changes to the templates in a theme are also applied to ALL GROUPS?
    And ... Custom Views can't use different themes or templates?
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    29 Nov 2010 09:12 AM
    Yes, only one theme can be used at a time. However, you can create new or different templates for any custom view, and change the current templates for existing views. You can have different templates based on group type.
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    29 Nov 2010 04:16 PM
    You can have different templates based on group type.


    This is what I'm trying to do, but for the life of me, after watching the custom views video and reading everything (I can search for) a few times, I'm still unclear HOW to create different 'tabs' for different group types.

    Are there any posts you know of, or can you give some steps?
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Custom View vs Custom Template
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy