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

Forums / General Discussions / Automatic progressive field as a dynamic content type field

Automatic progressive field as a dynamic content type field

3 posts, 1 answered
  1. Alessandra
    Alessandra avatar
    6 posts
    Registered:
    27 May 2011
    04 Mar 2015
    Link to this post
    Is it possible to add to a dynamic content type an automatically incremented field, e.g a progressive identification number that users can not modify? What is the best way to do that?
  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    26 Sep 2016
    09 Mar 2015
    Link to this post
    Hi Alessandra,

    I suppose by auto increment you mean the value of the field to auto increment based on certain event done to a module item like publishing the item, upon every publish the value of certain module field will increment its value.

    To handle events for custom modules built with the module builder refer to the public events for module builder modules documented here. Subscribe to DynamicContentUpdated event to handle every publish operation of the module and increment the value of certain field.


    Regards,
    Kaloyan
    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. Alessandra
    Alessandra avatar
    6 posts
    Registered:
    27 May 2011
    09 Mar 2015 in reply to Kaloyan
    Link to this post

    Thanks Kaloyan,

    we'll do that way.

     Alessandra

    Answered
3 posts, 1 answered