“URL 友好标题”的好名字?

发布于 2024-07-18 11:37:00 字数 185 浏览 4 评论 0原文

我正在创建一个包含文章的动态网站。 每篇文章都有一个标题,例如“一个人如何吃狗并与之共存?”,但也有一个我现在称之为“URL 友好标题”的标题,例如“吃狗”。

我正在寻找一个更好的词来形容“URL 友好标题”,因为它很拗口。 WordPress 称它们为“Post Slug”,但我太不喜欢这样了。 这些东西的好名字是什么?

I'm creating a dynamic website with articles. Each article has a title, like "How does one eat a dog and live with it?", but also something I'm now calling "URL Friendly Title", such as "eating-a-dog".

I'm looking for a better word for "URL Friendly Title", because it's quite a mouthful. Wordpress calls them "Post Slug" but I dislike that too much. What would be a good name for these things?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(9

郁金香雨 2024-07-25 11:37:00

我很遗憾地说“slug”似乎确实是标准术语。 这里有点词源上的术语,它似乎来自(oldschool,print)新闻业务

I'm sorry to say that "slug" really does seem to be the standard term. Here is somewhat of an etymology on the term, it seems it comes from the (oldschool, print) news business.

背叛残局 2024-07-25 11:37:00

您可以尝试不给它命名,而是展示它的使用方式。 这样的东西:

Title              : _______
URL Friendly Title : _______

所以,你可以不用

Title : _______
URL   : http://yourdomain.com/articles/______

You could attempt to not give it a name and instead show how it would be used. So instead of having something like this:

Title              : _______
URL Friendly Title : _______

you could have

Title : _______
URL   : http://yourdomain.com/articles/______
安穩 2024-07-25 11:37:00

我要选择“标识符”

I'm going for "Identifier"

九局 2024-07-25 11:37:00

你可以有

自然名称=“一个人如何吃掉一只狗并与它一起生活?”

URL 名称 =“吃狗”

You could have

Natural Name = "How does one eat a dog and live with it?"
and
URL Name = "eating-a-dog"

风吹雪碎 2024-07-25 11:37:00

“短名”怎么样?
在输入字段附近,最好通过举例说明短名称如何出现在 url 中来明确这是什么。

How about "short-name"?
Near the entry field it would be a good idea to make it clear what this is by giving an example of how the short-name would appear in a url.

陌伤浅笑 2024-07-25 11:37:00

我认为选择应该根据系统的最终用户类型来确定。 如果了解俚语的人会使用它,请使用 slug,它在许多 CMS 中使用。

如果该软件是为那些以编写文本为任务且不熟悉技术语言的人设计的,那么“slug”是一个糟糕的选择,因为它没有敲响该功能的含义。 人们只能通过阅读手册、询问其他人或(很可能)通过反复试验才能弄清楚这一点。

所以我的观点是,你应该选择一个能够表达该功能含义的名称,例如:

  • 友好的 URL
  • 可记忆的 URL
  • 永久链接(永远存在的东西,所以最好是好的)

我也会考虑将“URL”更改为“链接”或“地址”,因为“URL”对于新手来说可能毫无意义。

无论您如何选择,您都应该:

  • 用一个相当好的默认值(从输入的标题生成)填充它
  • 显示预览

这使人们能够了解该字段的用途,而无需提交文章然后观察发生了什么。

I think the choice should be determined by the type of end users of your system. If it will be used by people who know the slang, go for slug, it is used in many CMSes.

If the software is designed for someone whose mission is to write text, and who are not familiar with tech-speak - then "slug" is a poor choice, because it rings no bells about the meaning of the feature. One will only figure it out by reading the manual, by asking someone else, or (most likely) by trial and error.

So my point is that you should go for a name that expresses the meaning of the feature, ex:

  • friendly URL
  • memorizable URL
  • permanent link (something that is there forever, so it better be good)

I would also consider changing "URL" to "link" or "address", because "URL" could mean nothing to a newbie.

Regardless of your choice, you should:

  • fill it with a reasonably good default value (generated from the entered title)
  • show a preview

This enables people to understand what this field is for, without submitting the article and then observing what happened.

泪痕残 2024-07-25 11:37:00

我认为最好的方法是将其显示为

URL:site.com/article/_

如果 URL 的适当/描述性/SEO 友好确实很重要,您可以放置​​一个红色感叹号或者标签 URL 旁边引人注目的东西,当用户将鼠标悬停在它上面时,您可以弹出一个小气泡(例如),解释如何编写 slug(如果他们不使用适当的语言,甚至可能会发出警告) SEO 友好的 URL)。

i think the best would be to display it as

URL: site.com/article/_

And if it is really important that the URL is appropriate/descriptive/SEO Friendly, you can place a red exclamation mark or something eye-catching next to the label URL, when the user hovers over it you can have a little pop up speech bubble (for example) that explains how to write the slug (and maybe even a warning if they do not use an appropriate SEO friendly URL).

挽心 2024-07-25 11:37:00

“SEO标题”怎么样?

How about "SEO Title"?

愛放△進行李 2024-07-25 11:37:00

我称之为“友好的名字”。

I call it "Friendly Name".

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