More in this section

Forums / Developing with Sitefinity / Reserved IDs in Sitefinity

Reserved IDs in Sitefinity

6 posts, 0 answered
  1. kevin
    kevin avatar
    16 posts
    Registered:
    30 Jan 2007
    28 Mar 2008
    Link to this post
    I've noticed through various runtime developer tools like FireBug that Sitefinity uses names such as 'mainContent' for IDs which may conflict with other names in stylesheets. I've looked through the help for some direction on this, and found nothing in documentation. Is there a list of IDs used by Sitefinity CSS?

    This is a great example of why web-based CMSs have trouble achieving seperation from the code they control.
  2. Katia
    Katia avatar
    194 posts
    Registered:
    01 Jul 2016
    01 Apr 2008
    Link to this post

    Hi kevin,

    Do you mean that Sitefinity uses mainContent IDs for administration or for the predefined template sites we provide?

    In Sitefinity administration we use IDs like main and subnav but they should not interfere with your public site. IDs and CSS are applied to administration only. The other static IDs we use in the administration are with relatively long and descriptive names and they are used by javascript for better interaction.

    Sample template sites that come with Sitefinity (like Personal, Company and Community) use class names and IDs like header, main, footer, sidebar, etc. for layout. Anyway, they are meant to be used without making much effort to set the layout of the pages. Therefore, to avoid confusion we use the popular names.

    For the public controls like News list, Single News, Blog, etc. (that are actually rendered on your public site) we use classes rather that IDs and we have put “sf_” prefix to html tags for almost all controls.

    We don't have a list of the used class names and IDs in the administration because they should not cause any problems for public sites. The exemplary predefined template sites are supposed to be used with relatively little changes so in that case widespread layout names should be helpful rather than cause confusion.


    Regards,

    Katia
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
  3. kevin
    kevin avatar
    16 posts
    Registered:
    30 Jan 2007
    01 Apr 2008
    Link to this post
    Yes, it does cause conflicts. Denying it won't win my support. These names should be documented and available to developers.
  4. Katia
    Katia avatar
    194 posts
    Registered:
    01 Jul 2016
    07 Apr 2008
    Link to this post
    Hi kevin,

    Here is the list of IDs I have found to be used in Sitefinity Administration. Will you please give me an example of how any of these IDs conflicts with your public site. It will be highly appreciated because we'll be able to locate the problem you are talking about and solve it for the next Sitefinity release.

    Thanks for your cooperation in advance.

    List of IDs:
    • #acquireCoords
    • #actionsDisabled
    • #all
    • #allblogs
    • #allLists
    • #allowLinksToNextAndPrev
    • #allowPaging
    • #availableLibraries
    • #c1
    • #cat
    • #changeDiv
    • #changeLink
    • #chooseFromAvailableLibraries
    • #cmscntedit
    • #comments
    • #ControlEditor1
    • #ControlUploader1
    • #docs
    • #doneActions
    • #empty
    • #enableCategoriesInSingleItem
    • #EnableContentExpiration
    • #enableTagsInSingleItem
    • #everything
    • #expMenu
    • #globalPerm
    • #header
    • #historyWrapper
    • #historyWrapper
    • #largeImagesonly
    • #largeImagesthumbnails
    • #libraryRadios
    • #listWrapper
    • #loginBox
    • #main
    • #mainCol
    • #manyItemsDiv
    • #mapServiceWrapper
    • #mess
    • #newRole
    • #optionalSelectedMode
    • #Panel1
    • #Panel2
    • #Panel3
    • #reUplaodThumbnail
    • #reUploadDiv
    • #searchIndexingInProces
    • #SelectedMode
    • #settings
    • #sideBar
    • #sitemap
    • #skip
    • #smWrapper
    • #subnav
    • #tags
    • #theWrapper
    • #thumbnailsPerPage
    • #thumbnailUploadBtnDisabled
    • #title
    • #upl
    • #uplCont
    • #uploadBtnDisabled
    • #uploadSelectedInLibrary
    • #zipFileDiv

    Regards,
    Katia
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. kevin
    kevin avatar
    16 posts
    Registered:
    30 Jan 2007
    07 Apr 2008
    Link to this post
    This is great! Could we get a list of the CSS classnames generated as WebResource.axd as well?

    The reason why developers need these is obvious now. These simple IDs might be duplicated in markup and selected with CSS, causing unexpected problems and frustration. Thanks so much for helping.

    In future releases I might suggest all IDs and Classes used by Sitefinity have a generated amendment at runtime to eliminate any potential conflicts with developer markup. With a browser editing content for itself, code seperation is imperative.
  6. Katia
    Katia avatar
    194 posts
    Registered:
    01 Jul 2016
    09 Apr 2008
    Link to this post
    Hi kevin,

    I suppose that you do not want to make any changes in Sitefinity Administration that is accessed after a user logs in (like a custom Sitefinity Administration skin or a new Sitefinity module). I presume that you want to make public sites that derive from our Empty Project or from one of the predefined site templates that are shipped with Sitefinity (Personal, Company and Community).

    Please confirm whether I have understood everything right so far.

    In FireBug, if a style is shown to come from WebResource.axd that means that this style is probably written and applied to a Rad Control markup like Rad Editor, Rad Window, etc. Anyway, the Rad Controls styles are duplicated in Sitefinity Administration in the following folder:  ~/Sitefinity/Admin/Themes/Default/Prometheus/Default2006. So all CSS classes that Rad Controls use can be found in the css files in that folder and you can see them for yourself.

    Also, have you encountered ID/Class names conflict so far? Please give a concrete example of a real problem so I we can help you better and give you an adequate solution.

    Best wishes,

    Katia
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
6 posts, 0 answered