WinterCMS/ Octoctcms Builder-分类产品分类
我在有产品和类别的地方构建了插件(带有构建器)。产品和类别是通过关系表“定义”的。我有产品列表和另一个类别列表。在页面上,我列出了所有类别都可以正常工作。问题在于单个类别视图。现在,单个类别中的产品按添加订单列出。但是我想拥有自己的产品订单或某种重新排序。建筑商在记录列表(类别页面)中提供排序,但在记录详细信息中不提供排序(单类页面)。 感谢您的回答。
I built the plugin (with builder) where I have products and categories. Product and categories are "conected" by relation table. I have list of products and another list of categories. On page where I list my all categories everthing works fine. The problem is with the single category view. Now products in a single category are listed by add order. But I want to have my own order of products or some sort of reordering. Builder delivers sorting in record list (categories page) but not in record details (single category page).
Thanks for answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的模型中,您已经添加了
类别< - >的关系。产品
在这里,您可以添加
订单
选项以设置订单。如果有疑问,请发表评论
In your model, you have already added relationship like
category <-> products
Here you can add an
order
option to set the order.if any doubt please comment