More in this section

Event signup

2 posts, 0 answered
  1. IT
    IT avatar
    52 posts
    30 Sep 2008
    23 Mar 2009
    Link to this post
    Has anyone come up with a slick way of adding an event "sign up" feature to the event module?  I'd like to allow 'x' number of people register for an event and then have it 'closed' when full.  I'd appreciate any ideas on things you've thought about or tried. 

  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    25 Mar 2009
    Link to this post
    Hi Michael,

    I think this is possible to be implemented with not such a big effort.

    You could define a new metafield for the Events module. Let's say, it will be the Subscribers metafield. It will have a longtext type. You could store the subscribers like this:

    Georgi Chokov<>;Monika<>;Someone Else<>;

    If you want to add someone to the subscribers, you could do it like this

    subscribers = EventItem.GetMetaData("Subscribers").ToString(); 
    string new = "new name<>"
    subscribers += new// or subscribers = String.Concat(subscribers, new)) 
    EventItem.SetMetaData("Subscribers", subscribers); 

    When you need to know the number of the subscribers, in order to determine whether you are going to show the event subscription link or not, you could simply parse the string with String.Split method.

    I hope this will help you. Just let me know if you need any further assistance.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
2 posts, 0 answered