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

Sorting by a variable from a nested module

Development and Programming

xdupChook's avatar
xdupChook
9 posts
about 13 years ago
xdupChook's avatar xdupChook

Hi everyone,

I’m using a module called Polls ( http://eeharbor.com/polls ) and while I understand that this might not be the most appropriate place to post this question, I tried asking them about it (without luck) and realized that this question might be generalizable to other modules.

I setup Polls so that it’s a channel field along with another channel field I call {polls_id} for the id of the poll. I display the entries with the polls with a loop like this:

{exp:channel:entries channel="abc_polls"}
 {exp:polls:poll poll_id="{polls_id}"}
  ..
 {/exp:polls:poll}
{/exp:channel:entries}

Within the Polls module, it has a variable {poll_total_votes} and I was hoping to try and sort entries based on that (ascending/descending). I tried messing with {reverse_related_entries} and parse=”inward”, but just wasn’t able to figure it out. I know it’s because in order to figure out {poll_total_votes}, it needs to get it from the poll, but by the time that gets processed, the entries are already sorted.

Any insights on what I can do?

Thanks.

Bryan

       

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.