Polls Module

johnchansa
@johnchansa
10 years ago
195 posts
Is it possible to place polls on the main site page or other pages?I created a poll but it only shows on my profile page.
updated by @johnchansa: 08/22/14 03:00:16AM
douglas
@douglas
10 years ago
2,791 posts
You can use the jrCore_list function to get a poll listing on the skin side/front-end... you can also use {debug} in the row template to find out what variables are available.

https://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

Something like this should get you going:

{capture name="row_template" assign="poll_row"}
	{literal}
		{jrCore_module_url module="jrPoll" assign="murl"}
		{if isset($_items)}
    		{foreach from=$_items item="item"}
    			{debug}
		    {/foreach}
		{/if}
	{/literal}
{/capture}

{jrCore_list module="jrPoll" order_by="_created numerical_asc" limit="10" template=$poll_row}

You can also use the templates found in the modules/jrPoll/templates folder for examples.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags