title: How to customize SharePoint 2010 mobile view
body: <p>I am stuck on developing a mobile view for my SP2010 publishing portal. It is Internet-facing with custom pages / web parts (e.g. <a href="http://server/Pages/customPage.aspx">http://server/Pages/customPage.aspx</a> with custom webparts on it). The site has a custom master page.</p>
  
  <p>I am having the following issues with the built-in mobile functionality:</p>
  
  <ol>
  <li><p>The welcome page. Navigating to
  <a href="http://server/?Mobile=1">http://server/?Mobile=1</a> redirects me
  to
  <a href="http://server/_layouts/mobile/mbllists.aspx">http://server/_layouts/mobile/mbllists.aspx</a>, which just shows a table of lists / document libraries available. For
  my portal, I want to show a
  dashboard, just like I currently do for the "normal" non-mobile view.</p></li>
  <li><p>Navigating to one of my custom
  pages (e.g.
  <a href="http://server/Pages/customPage.aspx?Mobile=1">http://server/Pages/customPage.aspx?Mobile=1</a>)
  also redirects to
  <a href="http://server/_layouts/mobile/mbllists.aspx">http://server/_layouts/mobile/mbllists.aspx</a>.</p></li>
  </ol>
  
  <p>So in effect there is really no helpful built-in mobile support at all; just the ability to view lists with a mobile device.</p>
  
  <hr>
  
  <p>So I have a number of issues and I'm hoping for some high-level help. My thought is that I should do the following tasks:</p>
  
  <ol>
  <li>Create a separate master page for mobile</li>
  <li>Figure out how to choose this master page based on "is client a mobile device?"</li>
  <li>Figure out how to prevent the redirection to /_layouts/mobile/mbllists.aspx</li>
  </ol>
  
  <p>Then I think the mobile site will operate similarly to the normal site.</p>
  
  <p>Am I on the right track?</p>
  
  <hr>
  
  <p><strong>[Edit]</strong></p>
  
  <p>With what I have seen from links from @moontear and other research I've done, it sounds like my best option is to just disable built-in SharePoint mobile support, and just do my own conditional rendering based off of <code>Request.Browser.IsMobileDevice</code>.</p>