正确分类
我面临着组织问题,想也许有人可以启发我:) 我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建 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
对于城市:域模块
对于分类模块:视图+路径+pathauto。
For cities: Domain module
For taxonomy modules: views + path + pathauto.
目前不可能以这种方式可靠地限制分类领域。另一种解决方案是创建这些城市节点,然后允许用户使用预先填充的节点引用字段创建新项目。
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.