使用可用模块我可以离我的理想站点多远?我需要自己编写什么代码?
我已经安装了 Drupal 7 的最小配置,并使用 sqlite3 作为数据库。现在我想知道使用已经制作的模块我能到达我的“理想站点”多远。我是一名程序员,愿意为社区做出贡献并根据我的需要创建模块,但如果已经有不错的模块,我想使用它们而不是重新发明轮子。我想要的是:
- 一个有两种语言的多语言网站,英语和瑞典语。为此我需要:
- 一种用英语和/或瑞典语发布单个帖子的方法。并且能够将版本的漂亮 URL 设置为我想要的内容(例如同一帖子的瑞典语和英语版本的 a.com/hej 和 a.com/hello)。
- 如果用户浏览器设置为瑞典语并且他访问了瑞典语文章的英文版本;然后,文章顶部会出现一个红色小框,提醒用户该文章有其首选语言的版本。
- 两种语言版本的导航,其中:
- 瑞典语(版本)帖子和仅英语帖子会在瑞典语版本中显示(因为大多数瑞典语用户都能够阅读英语)。
- 英文(版本)帖子和纯英文帖子均显示在英文版本中。
- 一种发布三个 RSS 或 Atom-feed 的方法:
- 每种语言都有一个导航版本(见上文)。
- 另外一篇仅包含瑞典语帖子。
- 编辑后的帖子可以标记为再次出现在首页上。例如,如果我在“Linux Tips”帖子中添加提示,我会标记它。
- 人们在发表评论时可以使用以下方式验证自己的身份:
- OpenID
- 脸书
- 我可以使用 Markdown 撰写帖子。
- 我的代码示例突出显示了语法。
- 该网站经过 XHTML 1.0 Strict 和 CSS 2.1 验证。
我可以使用哪些已经可用的东西?
我自己需要贡献什么?
我是否应该考虑扩展我贡献的任何相关模块?
I've installed the minimal configuration of Drupal 7 with sqlite3 as its database. Now I am wondering how far I can get towards my "ideal site" with already made modules. I'm a programmer and willing to contribute to the community and create modules for what I need, but if there are already nice ones out there I'd like to use those and not re-invent the wheel. What I want is:
- A multi-lingual site with two languages, English and Swedish. For this I need:
- A way to publish a single post in English and/or Swedish. And being able to set the nice URL for the versions to what I want (like a.com/hej and a.com/hello for the same post in its Swedish and English version).
- If the users browser is set to Swedish and he visits the English version of an article available in Swedish; then a small red box is visible at the top of the article alerting the user that there is a version of this article in his preferred language.
- Two language versions of the navigation where:
- Swedish (version of) posts and English only posts are shown in the Swedish version (since most people in Swedish are able to read English anyway).
- English (version of) posts and English only posts are shown in the English version.
- A way to publish three RSS or Atom-feeds:
- One per language version of the navigation (see above).
- One additional with Swedish only posts.
- An edited post can be marked to occur on the front page again. I will mark it if I add a tip to my "Linux tips" post for example.
- People can authenticate themselfs when commenting using:
- OpenID
- I can write my posts using Markdown.
- My code examples gets syntax highlighted.
- The site validates as XHTML 1.0 Strict and CSS 2.1.
What can I use that is already available?
And what do I need to contribute myself?
Are there any relevant modules I should look at extending for what I contribute?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论