请为商品订单索引(在列表中)建议一个更好的属性名称

发布于 2024-10-15 16:52:04 字数 510 浏览 5 评论 0原文

嗨,我有一类“频道”,例如文件夹 - 但它可能是导航块中的菜单项。显然,“频道”具有

.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 called
StateProperties.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

朕就是辣么酷 2024-10-22 16:52:04

我相信“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.

一向肩并 2024-10-22 16:52:04

我更喜欢顺序或顺序。我认为 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文