简体   繁体   中英

October CMS - separating content from themes

October stores the content of your pages within the theme folders. This means that by switching themes, I'm also switching content for my website.

Other CMS's I've used such as WordPress retain the content completely separate from the themes, so I can switch themes and retain the same content and pages for the site without rebuilding or manually duplicating the pages.

How can I do this within October so that my content is separate from the theme? I've noticed that the blog plugin stores the content in the database and so that data is separate and portable. Would modifying the blog and replacing the CMS functionality with this be the best way to do this?

I create a new plugin (with Builder Plugin) with my custom logic, database tables, models, which wrapped in custom components. And then I insert component to standart october pages (static pages)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM