Page 1 of 1

[SOLVED / NOT A BUG] Page remaname work wrong

Posted: Tue Jan 16, 2018 10:17 pm
by sbma
After clean install WonderCMS, I see a problem.
When I try rename a page, page title is change, but slug and page title in "menuItems" section left with old values.
Slug in "pages" is left with old value too.
PS. My English is not so good, so I add a sample from my database.js

Code: Select all

{
    "config": {
        "dbVersion": "2.4.0",
        "siteTitle": "Website title",
        "theme": "default",
        "defaultPage": "home",
        "login": "loginURL",
        "password": "$2y$10$JVMRpwVw5BmCKHhQd3yBAO4.dxKpB0GWLz.f7wSa.vD263Aanszs2",
        "menuItems": {
            "0": {
                "name": "Home",
                "slug": "home",
                "visibility": "show"
            },
            "1": {
                "name": "Example",
                "slug": "example",
                "visibility": "show"
            }
        }
    },
    "pages": {
        "404": {
            "title": "404",
            "keywords": "",
            "description": "",
            "content": "<h1>Sorry, page not found. :(<\/h1>"
        },
        "home": {
            "title": "Home",
            "keywords": "Keywords, are, good, for, search, engines",
            "description": "A short description is also good.",
            "content": "<h1>Website alive!<\/h1>\n\n<h4><a href=\"http:\/\/192.168.56.103\/loginURL\">Click to login, the password is <b>admin<\/b>.<\/a><\/h4>"
        },
      "example": {
            "title": "otherpage",
            "keywords": "Keywords, are, good, for, search, engines",
            "description": "A short description is also good.",

Re: Page remaname work wrong

Posted: Tue Jan 16, 2018 11:24 pm
by wiz
Page "renaming" unfortunately doesn't work like that in WonderCMS, so changing the page title will not change the page name/slug.

You can either edit your database.js when you need to do this, or more simple: copy the page content and create the page name you actually want (and then removed the old one).

Let me know if you need any assistance.