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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...