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 - count list items with {answer_count} +1

Development and Programming

Joll de Wit's avatar
Joll de Wit
1 posts
16 years ago
Joll de Wit's avatar Joll de Wit

I would assume there is a simple way to do this but can’t seem to figure it out: What I want is to have the results show a count showing what place a result is, so that a the results would show: 1. Apple (20 votes) 2. Pear (18 votes) 3. Banana (11 votes)

Basically, the same that {answer_count} already does, but add one to each item count as {answer_count} start with 0. There’s no Single Variable that outputs this number, is there some sort of {(anwer_count)+1} construction for this?

       

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.