+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / BlogPosts ID Field Doesn't Work

BlogPosts ID Field Doesn't Work

6 posts, 0 answered
  1. Erik
    Erik avatar
    34 posts
    Registered:
    06 Dec 2007
    12 May 2008
    Link to this post
    Seems like a fundamental requirement of any control, but apparently the BlogPosts control ID field isn't working.  I have multiple blogs that I want to style individually through an explicit identifier and if I can't set them up to have an ID how else can I individually style them?

    Really frustrating when upgrades eliminate functionality that was in previous editions.  It should do the opposite.
  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    14 May 2008
    Link to this post
    Hi Erik,

    We have a list with several controls that initially do not have ID when they are placed in a page, but the Blog Posts control is not one of them. We tried reproducing this on both 3.2 and 3.2 SP1 versions but without success as the IDs were assigned automatically (check the attached screen shot). Please, let us know of any details that might help reproduce it or if we are missing something from your description.

    Thank you for the assistance

    Best wishes,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Erik
    Erik avatar
    34 posts
    Registered:
    06 Dec 2007
    15 May 2008
    Link to this post
    Yes, the screenshot you have included is correct, that there is an ID stored for the BlogPosts control.  My problem is that this ID is not spit back as HTML when the client requests the page, therefore it is as if the control doesn't even have an ID at all because the final output doesn't display any sort of wrapper tag with an ID assignment. 

    Before the  PostList control displayed a wrapper div with an id that looked like this:

    ctl00_cphContentPlaceHolder_PostListName

    Now, I see none of that anywhere in the BlogPosts output.  In fact, rather than a div it produces an unordered list, which is fine with me since it doesn't matter as far as styling goes, but I at least expect it to render an ID somewhere in the outside wrapper so that I can properly write styling rules based on unique IDs.  Do you understand now?

    Thanks,
    Erik
  4. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    15 May 2008
    Link to this post
    Hi Erik,

    We did this on purpose as some of our clients did not want the "wrapper" control to be rendered. If you need a container around blog posts, it's very easy to accomplish. Open the ~/Sitefinity/ControlTemplates/Blogs/ContentViewItemList.ascx and place the container there. You can use as many containers (e.g. div) and set any attributes you may need (id, class... etc.).

    I hope this was helpful. Let us know if we can assist you with anything else.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Joe
    Joe avatar
    2 posts
    Registered:
    27 Jun 2007
    27 May 2008
    Link to this post
    I"m not sure if this is related, but I have my own control in SiteFinity and in the edit mode it has a default ID field that doesn't display the ID (it's always blank).  Seems like it's write-only because I can see the ID rendered in the page just fine.  Is this by design as well?
  6. Kalina
    Kalina avatar
    176 posts
    Registered:
    27 Oct 2016
    29 May 2008
    Link to this post
    Hi Joe,

    This is a known issue that is already added to our Bug Tracking System (Issue#9632) and we will work to provide a fix for it in some of the next releases.

    We apologize for any inconvenience this might have caused you.

    Regards,
    Kalina
    the Telerik team

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