Reputation: 14661
I currently use wagtail as a blog which is accessible via example.com/blog
and the admin via example.com/blog/admin
.
I would like to also use wagtail to create a support (knowledge base) section. This would then be accessible via example.com/support
.
Would something like the following be possible?
example.com/wagtail
- wagtail admin (for both the blog and knowledge base)example.com/blog
- blog section of the siteexample.com/support
- knowledge base / support section of the siteIf the above is not possible I would also be open to having two completely separate wagtail apps in my django project, eg:
example.com/blog
- this is a blog wagtail section with its own adminexample.com/blog/admin
example.com/support
- this is a separate support wagtail section with its own adminexample.com/support/admin
I'm not entirely sure which option is possible or how to go about getting either one to work.
Upvotes: 2
Views: 1111
Reputation: 13
Is your Wagtail Installation based in /blog or did you fiddle around with the urls.py somehow?
If you have managed to access the admin via blog/admin without touching the urls.py, i recon this is more related to your Server Configuration than Wagtail itself.
If you want to use the same Domain (example.com) you should move Wagtail to the Root of your Domain. Move your Blogpage-Root to /blog and and support to /support. Admin will be on /admin per default.
Or you could use your Blog as the Landingage
example.tld -> Blog
example.tld/admin -> Admin
example.tld/support -> Support
If you can't move your blog the Domainroot things might get a bit complicated, depending on your Server Configuration.
Upvotes: 0
Reputation: 164
Your Wagtail CMS can handle multiple sites / page trees. Just create multiple root pages and point your desired domain (+ directory) to them via the sites menu in the settings. Here is a more detailed walkthrough. I reckon that you used this before to get Wagtail working for the blog/ subdirectory. Just create multiple sites and root pages in the same way.
To create a new root page try to go to the level above your current root page by clicking the little globe icon in the upper left corner of the explorer page or the "pages" button in the explorer menu, also in the upper left corner.
Upvotes: 1