Hi,
is there a way to rename the new notes section in kirby3 to blog?
Hi,
is there a way to rename the new notes section in kirby3 to blog?
Yes, with the Notes page open in the Panel, click on Settings > Rename
and enter a new title for the page. Or change the Title:
field in the content file.
If you also want to change the URL prefix/slug, you have to choose Settings > Change URL
. Or rename the folder in the file system.
Hello.
In my case I can rename Notes section but when I change the url I see these errors:
Console errors:
Object { status: “error”, message: “The parent for the query “kirby.page(“notes”)” cannot be found in the section “drafts””, code: 500, exception: “Kirby\Exception\Exception”, key: “error.general”, file: “/kirby/config/sections/mixins/parent.php”, line: 23, details: [], route: “pages/([a-zA-Z0-9\.\-%= \+\@\(\)]+)/sections/([a-zA-Z0-9\.\-%= \+\@\(\)]+)” }
app.js:1:34170
Object { status: “error”, message: “The parent for the query “kirby.page(“notes”)” cannot be found in the section “unlisted””, code: 500, exception: “Kirby\Exception\Exception”, key: “error.general”, file: “/kirby/config/sections/mixins/parent.php”, line: 23, details: [], route: “pages/([a-zA-Z0-9\.\-%= \+\@\(\)]+)/sections/([a-zA-Z0-9\.\-%= \+\@\(\)]+)” }
app.js:1:34170
Object { status: “error”, message: “The parent for the query “kirby.page(“notes”)” cannot be found in the section “listed””, code: 500, exception: “Kirby\Exception\Exception”, key: “error.general”, file: “/kirby/config/sections/mixins/parent.php”, line: 23, details: [], route: “pages/([a-zA-Z0-9\.\-%= \+\@\(\)]+)/sections/([a-zA-Z0-9\.\-%= \+\@\(\)]+)” }
app.js:1:34170
If you change the slug, the parent name in the blueprint will no longer be correct, therefore the error.
If you want to use specific pages as parents in your blueprints, you have to make sure that the information you use to find that page remains intact. If you find the parent by slug, the slug may not be changed, if you find by template, the template may not be changed etc.