Add a custom field to the newsletter subscription web part

Kentico User asked on October 17, 2016 18:17

Hi,

I cloned the newsletter subscription web part in kentico and copied, created and renamed the web part on the disk. What I would like to do is add a custom field to the newsletter subscription web part, which means I need to add a custom field to the Subscriber system table. Is my understanding correct? I could not find the subscriber system table. What am I missing?

Thank you

Recent Answers


Joshua Adams answered on October 17, 2016 19:12

What kind of information will this added field contain? Does it have to be in the subscriber table as well, or can it exist somewhere else?

1 votesVote for this answer Mark as a Correct answer

Kentico User answered on October 17, 2016 21:09

We are looking to track the company name of the user signing up for the newsletter. During registration, we need to collect, first name, last name, email and company name.

Whichever way is easier and is the kentico way of doing things. Add the new column in the subscriber table or handled somewhere else.

0 votesVote for this answer Mark as a Correct answer

Zach Perry answered on October 17, 2016 21:28

The subscriber table is in Modules > Email Marketing > Classes > Newsletter - Subscriber

1 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on October 17, 2016 21:55

You also have to think about adding that field to the current webpart(cloning it and making your changes) and also the view in the back end. Right now, it won't support/show your added field, so you will need to clone that admin page in the subscriber module, similar to where you added the field, except instead of clicking the classes, you will click the UI tab and change the url of the module page, to point to your cloned page, with your added field in the grid.

1 votesVote for this answer Mark as a Correct answer

Zach Perry answered on October 17, 2016 22:06

This is for K7, but might be helpful

1 votesVote for this answer Mark as a Correct answer

Kentico User answered on October 17, 2016 22:06

I guess we may run into issues during kentico upgrade, correct?

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on October 17, 2016 22:27

Not if you clone the controls and customize your cloned versions. Usually the database updates stay there and don't cause issues, at least from my experiences.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.