Hi friends,
I’m a real newbie at EE. Having trouble about LG Polls module
I followed the steps from the official module guide. I set up everything as it was told at doc. You can see below my code (taken from doc again). the current code below displays answers, I also can vote, everything is working great. It just doesn’t display the question :/ any idea what can be the problem? Appreciate helps!!!
Also, do we have to give specific entry_id=“29” via code? there should be a way to define this via control panel? a non-technical person can not assign new poll in this way since they will need to edit code and they easily can mess with codes :/ How can we assign poll via control panel?
**Template code**
{exp:weblog:entries}
{exp:lg_polls:poll entry_id="29" precision="1" return="/blog/"}
{poll_question}
{if can_vote}
{poll_form}
{if has_voted}You have already voted in this poll, however you can vote again.{/if}
<ul class='lg-polls-answers'>
{poll_answers}
<li class='a-{answer_count}'>
<label for='lg-polls-answer-{answer_id}'>{answer_input} <span class='answer'>{answer}</span></label>
</li>
{/poll_answers}
</ul>
<div class="alignCenter"><input type="image" src="{site_url}/images/btn_submitpoll.png" alt="Vote" /></div>
{/poll_form}
{if:else}
{if has_voted}Thanks for voting in this poll.{/if}
{if restricted}Sorry, You are restricted from voting in this poll.{/if}
{if expired}This poll ended on {expiration_date}.{/if}
{if yet_to_begin}This poll is yet to begin. Voting opens on {entry_date}.{/if}
{/if}
{if show_results}
<div class='lg-poll-results' id='lg-poll-results-29'>
<ul class='lg-polls-answers'>
{results_answers}
<li class='a-{answer_count}'>
<span class='answer'>{answer}</span>
<span class='answer-total-votes'>{answer_total_votes} votes <b>{answer_percentage}%</b></span>
</li>
{/results_answers}
</ul>
<div class='poll-total-votes'>Total Votes: {poll_total_votes}</div>
</div>
{if:else}
{if show_results_after_poll && has_voted}The results of the poll will be made available on {expiration_date}{/if}
{if never_show_results && has_voted}The results of this poll will be made public at a later date.{/if}
{/if}
{/exp:lg_polls:poll}
{/exp:weblog:entries}
——————————-
**Weblog field group**
screenshot link: http://img.skitch.com/20100818-k7tu7b1sdrda6b8rhp61wk9j3y.jpg
[Mod Edit: Moved to the EECore Support forum]