Adding a poll to your site

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Here you will learn how to create a new poll and publish it on a page on your website. Please note that you will have to have the Corporate Site sample website installed in order to follow these steps.

 

1. First of all you will need to create a new poll. Go to CMS Desk -> Tools -> Polls and click the AddPoll New poll link.

 

devguide_clip1296

 

2. Enter the following information for the new poll.

 

Display name: Services poll
Code name: ServicesPoll
Title: Services poll
Question: Do you like our services?

 

Click OK to save the changes. If you switch back to the CMS Desk -> Tools -> Polls tab, the poll you have just created will be displayed in the list.

 

devguide_clip1297

 

3. Now you need to define some answers for your new poll. In the Poll properties dialog, switch to the Answers tab and click the AddAnswer_polls New answer link. Enter Yes, I do. into the Text text box and click OK.

devguide_clip1298

 

To make the answer available on the live site, check the Enabled check box. Besides, you can also enter the initial value for votes. For the purpose of this example, enter 7. Click OK to save the changes.

 

devguide_clip1300

 

Repeat this step entering No, I don't. as an alternative answer and 3 as its initial value for votes. Optionally you can define more answers for your poll.

 

4. Now you are ready to publish your new poll on the website. Go to CMS Desk -> Content -> Corporate Site -> Services and switch to the Design tab. Click Add web part (NewAttribute) in the zoneLeft web part zone

 

devguide_clip1303

 

and in the Select web part dialog choose the Polls\Poll web part.

 

devguide_clip1304

 

5. In the Web part properties dialog, make sure Services poll is selected as Poll name and click OK. Please note that in this dialog you can also configure some additional settings of the poll that are described in the Kentico CMS Web Parts reference.

 

devguide_clip1305

 

Congratulations, you have just learned how to add a new poll to your website.

 

devguide_clip1306

 

 

 

Please note

 

You can also add a poll to you web page using the WYSIWYG editor as described in the Publishing polls topic. However, this option gives you fewer possibilities of further adjustment of your poll.

 

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?adding_a_poll_to_your_site.htm