[SOLVED / NOT A BUG] Page remaname work wrong

Post Reply
sbma
Posts: 3
Joined: Wed Nov 22, 2017 5:09 pm

[SOLVED / NOT A BUG] Page remaname work wrong

Post 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.",
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Page remaname work wrong

Post 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.
Post Reply