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

Forums / Designing with Sitefinity / Custom Fields in Newsletter module..

Custom Fields in Newsletter module..

4 posts, 0 answered
  1. Cyril Wasem
    Cyril Wasem avatar
    20 posts
    Registered:
    04 Aug 2009
    15 Sep 2009
    Link to this post
    Hi,

    how i can add a custom fields on the newsletter Subscriber (Subscrition form): form example add language and sector of activity ?

    i need add 2 new fields?

    Cyril
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Sep 2009
    Link to this post
    Hello Cyril Wasem,

    Newsletters module is not GenericContent based module and it does not support dynamic metakeys. If you want to add additional fields to the subscription form you need to create a new data provider to persists the data entered in this fields. Your data provider should inherit from Telerik.Notifications.Data.DefaultProvider. You can create a new table where to persists this data through Nolics or OpenAccess ORM

    Sample code.

    dbclass CustomSubscriber [TableName = "sf_Notif_CustomSubscriber"
    {  
        primary key string Application[50], guid SubscriberId[AutoGenGUID=true];  
        string Email[100]; 
        string FirstName[50]; 
        string LastName[50]; 
        string SectorOfActivity[50]; 
        bool IsCms; 
        string RelatedRole; 
        relation GroupSubscriber [] Groups; 

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Cyril Wasem
    Cyril Wasem avatar
    20 posts
    Registered:
    04 Aug 2009
    28 Sep 2009
    Link to this post
    Hi.
    ok fine, but have you a complete example ?
    thk's
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Sep 2009
    Link to this post
    Hi Cyril Wasem,

    You can take a look at the following articles Implementing Data Access with Nolics.NET, Creating Nolics.NET Data Access Project for Custom Module, Implementing Data Access with LINQ to SQL

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered