Updated method for adding custom pages to left sidebar #1049
Unanswered
SaturnTeamDev
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried implementing the custom pages via the instructions in admin_docs.md. But that was put together a couple years back and the last step doesn't apply anymore. Here is my updated (longer) version. If the instructions for a step have not changed, it will just say unchanged. Steps 8-10 might not always be required, but I'd like to get a second opinion on that. The following instructions relate to adding an FAQs page.
Step 1 (unchanged)
Step 2 (unchanged & optional)
Step 3 (unchanged)
Step 4 (unchanged)
Step 5 (unchanged & optional)
Step 6 (unchanged)
Step 7 (unchanged)
Step 8 (changed) -
Alter frontend/config/mediacms.config.pages.js and add the following code to line 176:
},
faqs: {
id: 'faqs',
title: 'FAQs,
renderer: templates.renderBase(),
snippet: templates.static.faqsPage(),
Step 9 -
Alter frontend/config/mediacms.config.templates.js and add the following code to line 35:
termsPage: compileStaticTmpl('faqsPage.html'),
Step 10 -
Duplicate frontend/config/templates/static/termsPage.html and change the the filename to faqsPage.html and change internal terms language to faqs/FAQs.
Step 11 -
Alter templates/config/installation/contents.html and add the following code to line 8:
{
text: "FAQs",
link: "/faqs",
icon: 'insert_drive_file',
},
Step 12 -
Enter Terminal and enter
sudo systemctl restart mediacms
on a single server install ordocker-compose restart web celery_worker celery_beat
using a docker install. Refresh your site. If you don't see the new page link, clear the cache for your site in your browser.Beta Was this translation helpful? Give feedback.
All reactions