Open Graph Beta:聚合的“分组依据”场地
Open Graph beta 的文档说:
分组依据 - 仅当显示聚合时选项才可用 对象。此选项允许聚合按属性分组 物体。例如,您可以按电影对象的类型进行分组,以显示 您观看某种类型的电影的次数。
你如何选择这个?
我有 Egg
对象,它有一个 Collection
属性,并希望基于该属性进行聚合。
例如,一个聚合故事将包含 Collection
设置为“复活节”的 Egg
对象,另一个聚合故事将包含 Collection< 的
Egg
对象。 /code> 设置为“圣诞节”。
Group By
似乎总是默认选择我为要显示的数据
选择的对象类型,但我没有看到手动设置此选项的选项。我也没有找到将聚合标题设置为组名称的方法。
The documentation for the Open Graph beta says:
Group by - Option is only available if your Aggregation is displaying
Objects. This option allows the aggregation to group by a property of
the object. For example, you can group by Movie object's type, to show
how many times you've watched a certain type of movie.
How do you select this?
I have Egg
objects with that have a Collection
property and want to aggregate based on that.
For example, one aggregate story would include Egg
objects with Collection
set to "Easter" and another would include Egg
objects with Collection
set to "Christmas".
Group By
always seems to default select the object type I choose for Data to Display
and I don't see an option to manually set this. Nor do I see a way to set the Aggregation Title
to be the name of the group.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能按字符串分组,只能按对象分组。尝试创建一个名为
Collection
的对象类型,并为每个集合创建 url。然后Collection
将显示在Data to Display
中,您可以按它进行分组。You can't group by a String, only an Object. Try making an Object Type called
Collection
and make urls for each collection. ThenCollection
will show up inData to Display
and you can group by it.