民意调查中的绝对数字

Heyah,

I remember there was a great topic once explaining the usage of the poll-plugin, but even after searching the forum for 15min I can find it (found a reference to it, that leads to a 404 though). So in case that is already implemented, please let me know how to activate it and move this out of this section :wink: .


Love the polls. We are using it internally to gauge interest and make participation easier. It also acts as a replacement for doodle. One thing we are using it for is to easily pre-organise events, for e.g. asking who’s gonna come and what food they want (and having emoji in it, makes it awesome):

However, the “relative” counts are really irrelevant in this case for us. So when looking at the results, to figure out how much pizza/sushi to order, I have to make the reverse calculation. It’d be great, if I could configure the poll to use absolute instead of relative numbers on a case-to-case-basis.

6 个赞

At a minimum we would be fine with a PR that add a “title” attribute to .percentage that describes how many votes total there are.

Maybe also a “hint” to work in “total” mode, but that is up to @codinghorror to decide.

4 个赞

I think adding a “results” attribute which defaults to “percentage” but can also be set to “total” shouldn’t be that hard. Most of the work is done client-side anyway.

1 个赞

Would a PR doing that be accepted?

1 个赞

Of course it would be :wink:

1 个赞

我们最近在一个有超过100人参与的投票中遇到了这个问题,当时我们需要具体的数字,却没想到这会成为一个问题。如果这个问题在渲染时出现,能否指点我一下代码中是在哪里处理的?我可以试着看一下。

如果您已安装数据探索器插件,可以使用提供的查询 /admin/plugins/explorer?id=-16 来获取完整结果。

1 个赞

我是否理解正确,此功能仍未实现?

如果是这样,我将请求在 Marketplace 上报价以寻找融资方案。

哪个是合适的投票选项?

  • [poll absolute]
  • [poll absolute=true]
  • 其他…
0 voters

当前文档是

1 个赞

我正在创建一个 PR 来进行此项改进:

5 个赞

我留了张便条 :sweat_smile:

1 个赞

此功能已合并 :slightly_smiling_face:

7 个赞

感谢您稍微推迟一下以适应我的更改 :拥抱:

1 个赞

此主题已在 47 小时后自动关闭。不再允许回复。