More in this section
Forums / Suggestions / custom page controlAdapter

custom page controlAdapter

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Jan 2009
    Link to this post
    I discovered this page controlAdapter: http://www.manuelabadia.com/blog/PermaLink,guid,7924eaf8-b406-43af-9444-b816f6dfa246.aspx which moves the hidden viewstate input field from the top of the page to the bottom for a more search-engine friendly page. Can anyone from the sitefinity team tell me if this adapter will interfere with sitefinity in any way?
  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    06 Jan 2009
    Link to this post
    Hi SelArom,

    There is no problem to use this adapter with Sitefinity.

    Here are the steps to accomplish this:
    1.Put SEOFriendlyViewStatePageAdapter.cs and ViewStateForSEOPageStatePersister.cs files in App_Code folder of your web site.
    2.Add this line in file [your web site]/App_Browsers/BrowserFile.browser :
    ...  
    <browser refID="Default">  
        <controlAdapters> 
          <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" /> 
          <adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" /> 
          <adapter controlType="System.Web.UI.WebControls.HyperLink" adapterType="CustomAdapters.CustomHyperlinkAdapter,App_Code" /> 
          <adapter controlType="System.Web.UI.Page" adapterType="Manu.Web.Adapters.SEOFriendlyViewStatePageAdapter, App_Code" /> 
        </controlAdapters> 
    ... 

    We hope this helps you.

    All the best,
    Parvan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered