Can we use shorter client IDs?

Posted by Community Admin on 03-Aug-2018 03:35

Can we use shorter client IDs?

All Replies

Posted by Community Admin on 22-Jul-2011 00:00

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>

Posted by Community Admin on 28-Jul-2011 00:00

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

Posted by Community Admin on 29-Jul-2011 00:00

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.

Posted by Community Admin on 01-Aug-2011 00:00

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

This thread is closed