请为商品订单索引(在列表中)建议一个更好的属性名称
嗨,我有一类“频道”,例如文件夹 - 但它可能是导航块中的菜单项。显然,“频道”具有
.Title
.Alias (wordPress slug-like)
.Content
.RedirectUrl (may act as a hyperlink)
.StateProperties.IsActive
.StateProperties.IsFeatured
/// 等属性。
但是在很多情况下,我希望手动设置导航菜单块中项目的顺序 - 无论我决定什么重要性,对吧..? (不是按 abc 或时间戳)
所以我添加了一个名为 StateProperties.OrderIndex
只是为了这个...我的一位同事在提到它时将其称为“z-index”...我正在尝试构建一个 CMS 框架我们的内部需求,只是寻求您对我的“OrderIndex”可以使用什么名称的意见? 对我来说“OrderIndex”才有意义:)
Hi I have a class of let's say "Channels", like folders - but it could be menu items in a navigation block. So obviously a "Channel" has properties like
.Title
.Alias (wordPress slug-like)
.Content
.RedirectUrl (may act as a hyperlink)
.StateProperties.IsActive
.StateProperties.IsFeatured
/// etc..
but in many cases I would want to set the order of my items in a navigation menu block manually - by whatever importance I decide, right.. ? (not by abc or timestamp)
So I've added a property calledStateProperties.OrderIndex
just for this... a colleague of mine has called it "z-index" while he was referring to it... I am trying to build a CMS framework for our internal needs and just seeking your opinions as to what name could possibly be used for my "OrderIndex" ?
To me "OrderIndex" just makes sense :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信“OrderIndex”正是您正在寻找的,因为索引代表位置,而您正在设置“订单”位置。 “z-index”中的“Z”代表深度位置,这似乎与您想要的不匹配。
I believe 'OrderIndex' is exactly what you are looking for, since index stands for position and you are setting an 'Order' position. The 'Z' in 'z-index' stands for depth position, which does not seem to match what you are trying to go for.
我更喜欢顺序或顺序。我认为 z-index 具有与您所追求的不同的含义(更多用于在堆栈上排序)。
I would prefer Order or Sequence. I think z-index carries a different meaning that what you're after (more for ordering on a stack).