Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- ExtensionCode.ExtensionClass[0]
-
- Description
-
... ... @@ -1,8 +1,10 @@ 1 +{{extensionToc/}} 2 + 1 1 This application is a very simple multiple choice poll similar to doodle. It supports voting without edit rights. 2 2 3 - {{imagereference="viewActivePoll.png"width="900"/}}5 +== Home page == 4 4 5 -In order to access the home page of the application, the users have to look for the**Polls** entry in the Applications panel located by default in the left panels section of the page:7 +In order to access the home page of the application, the users have to look for **Polls** entry in the Applications panel located by default in the left panels section of the page: 6 6 7 7 {{image reference="applicationsPanel.png" width="250"/}} 8 8 ... ... @@ -10,7 +10,53 @@ 10 10 11 11 {{image reference="viewPolls.png"/}} 12 12 15 +== Create new poll == 13 13 17 +In order to create a new idea, click **Create** button from the top of the page and the next step will display a list of available templates where you can find the one corresponding to polls. 18 + 19 +{{image reference="createPoll.png" width="720"/}} 20 + 21 +{{image reference="editPoll.png" width="900"/}} 22 + 23 +== Voting interface == 24 + 25 +In order to allow voting on a poll, its status has to be set to **Active**, the default value being **In preparation**. 26 + 27 +{{image reference="viewActivePoll.png" width="900"/}} 28 + 29 +== Recent Polls Macro == 30 + 31 +This macro also lists the most recent created polls, but, unlike the livetable, no actions can be performed on this list. There are 2 ways of using a macro in a wiki page as also described in [[Writing Macros>>http://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/WritingMacros/WikiMacroeTutorial/#HHelloMacro]] documentation: 32 + 33 +=== Using the macro from WYSIWYG editor === 34 + 35 +Edit a wiki page in WYSIWYG mode and look in the tool bar for the {{velocity}}$services.icon.render('cog'){{/velocity}} icon (XWiki Macro) then search for **Recent Polls** and set the number of polls to be displayed. 36 + 37 +{{gallery}} 38 + image:selectCog.png 39 + image:selectMacro.png 40 + image:setLimit.png 41 +{{/gallery}} 42 + 43 +=== Using the macro from wiki editor (code) === 44 + 45 +Edit the page in wiki mode and write the following code snippet: 46 + 47 +{{code}} 48 +{{pollsrecent limit=10 /}} 49 +{{/code}} 50 + 51 +Where the macro parameter **limit** is the maximum number of polls that you want to be displayed on your page. Its default value is 5. 52 +If, instead, you don't want to set a maximum number of polls, remove the limit parameter and all of them will be displayed. 53 + 54 +This is how it will look like before adding polls: 55 + 56 +{{image reference="viewRecentNoPolls.png"/}} 57 + 58 +And after adding them: 59 + 60 +{{image reference="viewRecentPolls.png"/}} 61 + 14 14 == External Resources == 15 15 16 16 {{html}} ... ... @@ -30,4 +30,3 @@ 30 30 </div> 31 31 </div> 32 32 {{/html}} 33 -
- Store.Code.PayingAppsClass[0]
-
- Documentation
-
... ... @@ -1,50 +1,0 @@ 1 -= Topics = 2 - 3 -{{toc start="2"/}} 4 - 5 -== Create new poll == 6 - 7 -In order to create a new idea, click **Create** button from the top of the page and the next step will display a list of available templates where you can find the one corresponding to polls. 8 - 9 -{{image reference="createPoll.png" width="720"/}} 10 - 11 -{{image reference="editPoll.png" width="900"/}} 12 - 13 -== Voting interface == 14 - 15 -In order to allow voting on a poll, its status has to be set to **Active**, the default value being **In preparation**. 16 - 17 -{{image reference="viewActivePoll.png" width="900"/}} 18 - 19 -== Recent Polls Macro == 20 - 21 -This macro also lists the most recent created polls, but, unlike the livetable, no actions can be performed on this list. There are 2 ways of using a macro in a wiki page as also described in [[Writing Macros>>http://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/WritingMacros/WikiMacroeTutorial/#HHelloMacro]] documentation: 22 - 23 -=== Using the macro from WYSIWYG editor === 24 - 25 -Edit a wiki page in WYSIWYG mode and look in the tool bar for the {{velocity}}$services.icon.render('cog'){{/velocity}} icon (XWiki Macro) then search for **Recent Polls** and set the number of polls to be displayed. 26 - 27 -{{gallery}} 28 - image:selectCog.png 29 - image:selectMacro.png 30 - image:setLimit.png 31 -{{/gallery}} 32 - 33 -=== Using the macro from wiki editor (code) === 34 - 35 -Edit the page in wiki mode and write the following code snippet: 36 - 37 -{{code}} 38 -{{pollsrecent limit=10 /}} 39 -{{/code}} 40 - 41 -Where the macro parameter **limit** is the maximum number of polls that you want to be displayed on your page. Its default value is 5. 42 -If, instead, you don't want to set a maximum number of polls, remove the limit parameter and all of them will be displayed. 43 - 44 -This is how it will look like before adding polls: 45 - 46 -{{image reference="viewRecentNoPolls.png"/}} 47 - 48 -And after adding them: 49 - 50 -{{image reference="viewRecentPolls.png"/}}