正确分类

发布于 2024-10-01 08:16:46 字数 594 浏览 6 评论 0原文

我面临着组织问题,想也许有人可以启发我:) 我正在使用 drupal 开发一个分类网站,但我不知道如何分离每个地方发布的帖子。

想象一下该网站可供来自三个城市的人们使用。芝加哥、波士顿、西雅图 这些城市有相同的部分:汽车、家具、计算机。

我想要的是让访问者首先从选择列表中选择他的城市。这将把他带到:his_city.website.com 然后他可以按部分和子部分浏览,也可以创建一个新帖子

我尝试将城市添加为部分,然后添加类别和子类别,但感觉不对 创建新帖子时,所有城市及其类别/子类别都会出现,这可能会让人们感到困惑。

我去 Craigslist 上看看他们的表现,这几乎就是我想要的。

http://city.language.website.com/main-section/category/sub-category

您将如何对此进行分类?

我想也许有不同的 drupal 安装(每个城市一个),但是是否可以连接数据库以允许用户注册而不必在每个城市创建多个帐户..?

无论如何,欢迎任何想法

非常感谢您

p.s:在保持相同内容的同时切换网站的语言是我要处理的下一个大问题:)

I'm facing an organizational problem and thought maybe someone could enlighten me :)
I'm working on a classifieds website using drupal and i just can't figure out how to seperate the posts published for each place.

Imagine the website can be used by people from three cities. Chicago, Boston, Seattle
The cities have the same sections : Cars, Furniture, Computers.

What i want is to let the visitor choose his city first, from a select list for example. That will take him to : his_city.website.com
Then he can either browse by sections and sub-sections or either create a new post

I tried adding the cities as sections and then adding categories and sub-category but it doesn't feel right
When creating a new post, all the cities and their categories/sub-categories appear and it can be really confusing for people.

I went to see how they do on Craigslist and it's pretty much what i have in mind.

http://city.language.website.com/main-section/category/sub-category

How would you taxonomize this ?

I thought maybe different drupal installations ( one for each city ) but is it possible to connect the databases to allow users to sign up without having to create multiple accounts on each city .. ?

Anyway, any ideas are welcome

Thank you very much

p.s : Switching the website's language while keeping the same content is the big next question i'll be dealing with :)

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

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

发布评论

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

评论(3

紫竹語嫣☆ 2024-10-08 08:16:46

创建 2 个分类词汇表
一个用于城市
一个用于类别

创建节点用户应确定 2 个词汇表

使用城市分类 voc 进行域使用 域分类

Create 2 taxonomy vaocabularies
One for cites
One for categories

Creating node user should determinate 2 vocabularies

To use city taxonomy voc for domain use Domain Taxonomy

枕花眠 2024-10-08 08:16:46

对于城市:域模块
对于分类模块:视图+路径+pathauto。

For cities: Domain module
For taxonomy modules: views + path + pathauto.

一指流沙 2024-10-08 08:16:46

目前不可能以这种方式可靠地限制分类领域。另一种解决方案是创建这些城市节点,然后允许用户使用预先填充的节点引用字段创建新项目。

Its not currently possibly to reliably limit taxonomy fields in this way. The other solution is to make those cities nodes, then allow users to create new items using a pre-populated nodereference field.

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