Jump to content

Recommended Posts

Posted

I am trying to get this site structure:

…
/projects/ (is rendered, is in nav menu)
/projects-folder/ (not rendered, not in nav menu)
/projects-folder/project1 (rendered, not in nav menu)
/projects-folder/project2 (rendered, not in nav menu)
/projects-folder/project3 (rendered, not in nav menu)
…

How can I create the "projects-folder"? Do I need a "folder" or a "blank"-template. Or is there any better solution?

Posted

..or if you mean by "folder" a parent container within the tree structure then yes, you need to create a blank template (without a template file) with just a "title" field (since it's the default and mandatory).

  • Like 2
Posted

I'm not sure I understand the question, but I guess by "folder" you mean "a URL structure that doesn't exist neither as physical folder on disk nor in the PW page-tree". If that's what you're after, you can enable URL segments in home (page id 1), and then go from there. There are plenty of forum threads with examples. It's really simple and straightforward (no need to mess around with .htaccess rewrite rules etc.)

https://processwire.com/docs/front-end/how-to-use-url-segments/

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...