Jump to content
2hoch11

How to make a subfolder

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thank you flydev. My question is about how to create a folder, not how to render the files.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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