django cms - 集成 cms 并通过语言以外的方式区分内容
django 新手...
我有一个结构为 /[flavor]/[page] 的网站,其中有许多不同的风格,每种风格都有大致相同的页面集。至少在简单的层面上,这似乎作为 django 应用程序运行良好 - 风味可以轻松成为页面模板的输入。
现在我正在尝试集成一些 cms mojo,以便非技术人员可以轻松添加/修改每种风格的内容或页面,并且尚不清楚 django-cms 如何/是否支持此功能。据我所知,我想要的似乎与 django-cms 处理语言的方式类似或等效 - 在管理中,每种语言都有一个单独的选项卡,您可以在其中指定每种语言的内容。
目前,我的网站只有英文,所以我想一种选择(看起来不太有吸引力或永久)是通过假装它们是语言来处理口味。
我知道我可以在 cms 页面上托管任意 django 应用程序来处理风味部分,但托管应用程序似乎不支持以与语言相同的方式在其中添加 cms 页面。
作为 django 的新手,我并不执着于特定的 cms,并且也愿意接受有关方法、站点结构等的任何建议 - 主要要求是支持非技术人员轻松添加/修改不同的内容/页面为了不同的口味。
谢谢!
New to django...
I have a site with structure /[flavor]/[page] where there are many different flavors and each flavor has roughly the same set of pages. At least at a simple level, this seems to work fine as a django app - flavor can easily become an input to the template for a page.
Now I'm trying to integrate some cms mojo so someone non-technical can easily add/modify content or pages per flavor, and it's not clear how/if django-cms supports this. As far as I can tell, what I want seems similar or equivalent to how django-cms handles languages - in the admin there's a separate tab for each language where you can specify content per language.
For now, my site is English only, so I suppose one option (that doesn't seem too attractive or permanent) is to handle the flavors by pretending they're languages.
I know I can host an arbitrary django app on a cms page that could handle the flavor portion, but the hosted apps don't seem to support adding cms page within them in the same way that languages do.
Being new to django, I'm not wedded to a particular cms, and am open to any suggestions about approach, site structure, etc. as well - the main requirement is to support someone non-technical easily adding/modifying different content/pages for the different flavors.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一种选择是绕过风味页面的 CMS,并创建风味模型。您可以使用 django-tinymce 的 HTMLField (https://github.com/aljosa/django-tinymce/blob/master/docs/usage.rst) 来允许在 Flavor 字段上进行富文本编辑。
One option would be to bypass the CMS for the flavor pages and create a Flavor model instead. You could use django-tinymce's HTMLField (https://github.com/aljosa/django-tinymce/blob/master/docs/usage.rst) to allow rich text editing on Flavor fields.