locked
How can I change Sharepoint control templates RRS feed

  • Question

  • How does sharepoint choose it's control templates? Is there a way influence how this is done? I remember that I have done an own templetes for custom content types, but what if I would need to change all control templates? Can I use asp.net Dynamic Data templates or can I attach these as a alternative control templates by data type? 

    I need to alter all control templates depending on a platform that is used to browse content

     

    Tuesday, July 5, 2011 8:08 PM

Answers

  • In the root folder (C:\program files\common files\microsoft shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES this is where the controltemplates folder lives. You can override control templates if that is what you are looking for.  Here is a blog post which shows how to do this.

    http://msdn.microsoft.com/en-us/library/aa544582.aspx 

    Good luck,

    Gary

    blog www.sharepoint2010now.com 


    Gary Newman MCSE, MCT, CCNA MCDBA, MCAD, MCSA MCTS SharePoint 2007 Dev & Admin MCPD SharePoint 2010 Development Blog www.sharepoint2010now.com
    Thursday, July 7, 2011 4:23 AM

All replies

  • By control template, do you mean http://msdn.microsoft.com/en-us/library/ms566037.aspx ?

    Thursday, July 7, 2011 3:50 AM
  • In the root folder (C:\program files\common files\microsoft shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES this is where the controltemplates folder lives. You can override control templates if that is what you are looking for.  Here is a blog post which shows how to do this.

    http://msdn.microsoft.com/en-us/library/aa544582.aspx 

    Good luck,

    Gary

    blog www.sharepoint2010now.com 


    Gary Newman MCSE, MCT, CCNA MCDBA, MCAD, MCSA MCTS SharePoint 2007 Dev & Admin MCPD SharePoint 2010 Development Blog www.sharepoint2010now.com
    Thursday, July 7, 2011 4:23 AM
  • Hi yes and thank you, thats the way to change one template. How could I make this as an universal solution for my problem.

    Is there a neat way to change template selector? I was thinking that I would need to have an http handler to change it when you notice that request is coming for example from mobile device otherwise it should be as it is

    Saturday, July 9, 2011 6:55 AM
  • This is a central point, where SharePoint calls all of its controls.  You are changing one but its may be used 100's of paces.  So these do effect everything.

    Good luck,

    Gary

    blog www.sharepoint2010now.com 


    Gary Newman MCSE, MCT, CCNA MCDBA, MCAD, MCSA MCTS SharePoint 2007 Dev & Admin MCPD SharePoint 2010 Development Blog www.sharepoint2010now.com
    Saturday, July 9, 2011 5:46 PM