• Resolved appie1981

    (@appie1981)


    I’m building a website which will have a very large amount of pages which I’m planning on generating via the REST API. So far it’s going quite well but I’m running into an issue I can’t solve.

    What I’m trying to do is create folders so that my site has a logical structure.
    An Example of what I want https://www.website.com/chicago/station
    So I want to create Chicago as my mainpage and then create separate pages about the city like /public transport /parks/.

    However what I end up with is the following: https://www.website.com/chicago-station.
    I hope that someone can explain to me what I should do in order to create this structure.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you truly want Pages instead of Posts, you need to set the parent of the page as you create it. So you would have to create the parent first and use that ID in the child page’s “parent” field.

    If you used Posts instead, you could just set the categories to contain the hierarchy.

    Thread Starter appie1981

    (@appie1981)

    Hi Joy,

    Thanks for the information I’m going to try your suggestion!

    Thread Starter appie1981

    (@appie1981)

    I’ve tested a bit I run into the following problem. What I want to do is create an airport page with an arrival and a departure page like. https://www.sitename.com/LAX/arrivals.
    So the arrival page has LAX as parent. Now I create the second page for example https://www.sitename.com/ohare/arrivals with parent ohare this doesn’t work. I can’t seem to create so pages with the same name(arrivals) even though they have different parents. Is there a way to solve this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create folder structure’ is closed to new replies.