We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG polls: results returned are from different poll

Development and Programming

brittanyA's avatar
brittanyA
184 posts
16 years ago
brittanyA's avatar brittanyA

You can see my problem here in sidebar at the top, right: http://uvamagazine.org/classnotes/test-year/y2008

When you hit “vote” the results from ANOTHER poll are returned. I’m using a relationship to connect the poll to the entry.

I have a feeling my problem lies in the AJAX template:

{exp:weblog:entries
  weblog="polls"
  entry_id="{segment_4}"
  show_future_entries="yes"
  show_expired="yes"
  limit="1"
  rdf="off"
  disable="categories|category_fields|member_data|pagination|trackbacks"
  dynamic="off"
}

  {embed="classnotes/polls-classnotes-embed"
    entry_id="{entry_id}"
    poll_question="{poll_question}"
    entry_date="{entry_date format="%D, %F %d, %Y - %g:%i:%s"}"
    expiration_date="{expiration_date format="%D, %F %d, %Y - %g:%i:%s"}"
    ajax_return="classnotes/polls-classnotes-ajax/{entry_id}/"
  }

{/exp:weblog:entries}

{segment_4} is NOT the ID for the poll. But it won’t work if I take that parameter out. Any ideas? Thank you!!

       
brittanyA's avatar
brittanyA
184 posts
16 years ago
brittanyA's avatar brittanyA

Do I actually have to hard code the entry_id into the exp:weblog:entries tag? There’s no way to make this automate but have dynamic turned off?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.