More in this section

Forums / General Discussions / Can we use shorter client IDs?

Can we use shorter client IDs?

4 posts, 0 answered
  1. Sonu Kapoor
    Sonu Kapoor avatar
    41 posts
    Registered:
    24 Apr 2006
    22 Jul 2011
    Link to this post
    Hi,

    Are there any plans to reduce the length of the client IDs in SiteFinity? When I view source on certain pages, then I can see that some of the IDs are humongous. Here is an example from the news page:

    <fieldset class="sfSearchBoxSet">
        <label for="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchBox" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_lblSearchBox" class="sfSearchLbl">Search...</label>
        <input name="newsCntView$newsBackendList$ctl00$ctl00$toolbar$search$ctl00$ctl00$searchBox$ctl00$ctl00$searchBox" type="text" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchBox" class="sfTxt" />
        <a onclick="return false;" id="newsCntView_newsBackendList_ctl00_ctl00_toolbar_search_ctl00_ctl00_searchBox_ctl00_ctl00_searchButton" class="sfLinkBtn" href="javascript:__doPostBack(&#39;newsCntView$newsBackendList$ctl00$ctl00$toolbar$search$ctl00$ctl00$searchBox$ctl00$ctl00$searchButton&#39;,&#39;&#39;)">
            <strong class="sfLinkBtnIn">
    
                Search
            </strong>
        </a>
    </fieldset>
  2. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    28 Jul 2011
    Link to this post
    Hello Sonu Kapoor,

    We have plans for the future, anyway you could still use your own template where you'll be able to control the html,

    All the best,
    Pavel
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Eric
    Eric avatar
    147 posts
    Registered:
    12 Nov 2007
    29 Jul 2011
    Link to this post
    This will probably break SF, but have you tried setting the ClientIdMode in the web.config to Predictable or Static (probably predictable)?

    I would guess it would break the JavaScript of SF, but it's worth a shot.

    Or maybe you could set it in the MasterPage of your template.
  4. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    01 Aug 2011
    Link to this post
    Hi Eric,
    Setting it globally (web.config) will cause problems in the backend. Having a master page configured like that is worth giving a try.

    Best wishes,
    Pavel
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered