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

Forums / Developing with Sitefinity / Custom data- attribute in Sitefinity Content Block

Custom data- attribute in Sitefinity Content Block

8 posts, 0 answered
  1. Jaydeep
    Jaydeep avatar
    6 posts
    Registered:
    17 Sep 2014
    23 Apr 2015
    Link to this post

    Hello,

     I am using Sitefinity Content block to display the HTML on page. I want to use HTML "data-" attribute on content block's DIV or whatever wrapper tag.

     

    Is this any way available to set it?

     

    Help would be highly appreciated.

  2. Laurent Poulain
    Laurent Poulain avatar
    17 posts
    Registered:
    08 Dec 2016
    27 Apr 2015
    Link to this post

    Hello,

    When editing the Content Block:
    - Click on the Advanced button
    - Scroll down to the bottom of the attribute list
    - In the "WrapperTag" edit box, enter the "data-" attribute after the div

    Regards,

    Sitefinity Laurent
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    01 May 2015 in reply to Laurent Poulain
    Link to this post
    Is this possible with a Layout div in Sitefinity?
  4. Laurent Poulain
    Laurent Poulain avatar
    17 posts
    Registered:
    08 Dec 2016
    01 May 2015
    Link to this post
    Hello,

    If you want to modify the layout, you will need to create your own templates.

    Regards,
    Sitefinity Laurent
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    02 May 2015 in reply to Laurent Poulain
    Link to this post

    Thanks Laurent,

    I'm trying to use Sitefinity tools as much as possible.  Having developed the site previously in ASP.NET, I want the new website to resort to coding pages manually as little as possible.  Could a Request for Change be made to allow layout div tags, to add data attributes as you can with content blocks?  It seem on the surface a small change?

  6. Laurent Poulain
    Laurent Poulain avatar
    17 posts
    Registered:
    08 Dec 2016
    04 May 2015
    Link to this post
    Hello David,

    Please note that creating a page template does not require any coding.

    Anyway, I have filed a Feature Request for that: http://feedback.telerik.com/Project/153/Feedback/Details/157741-allow-to-customize-layout-div-elements-without-creating-ones-own-templates

    Make sure to subscribe if you want to be kept notified of any change in this feature request.

    Regards,
    Sitefinity Laurent
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  7. Jaydeep
    Jaydeep avatar
    6 posts
    Registered:
    17 Sep 2014
    05 May 2015
    Link to this post

    Hello Everyone,
    Thanks Laurent for creating a Feature Request. I just vote it up.

     

    Also, Thanks David to suggest a way to customize the layout div. It would be great if we can assign custom attributes, id and wrapper tag to layout.

     

    Regards,

    Jaydeep Jadav

  8. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    05 May 2015 in reply to Laurent Poulain
    Link to this post

    Thanks Laurent,

     

    I'm not following this request.

8 posts, 0 answered