This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

howtomakeaturn5843
howtomakeaturn5843

Hi!

I create a template in 'pages' folder directly and it works

But if I create a folder in 'pages' and put templates in it, it doesn't show.

Why?

Thanks for any help!

axomat
axomat

Not sure what you mean by a template? I will assume you mean "page" in the CMS section of October.

If you want to create a page in a subfolder called "account" and the file is "login.htm" then when you create a new page, you make the file name "account/login.htm" and that will work.

wampov7289
wampov7289

Hello axomat. I have the same question. I will not have a long list of files and organize them into folders prefer (see picture). Can I organize my site folders? Alt text

axomat
axomat

Just change the name of the file in Nombre del Archivo to music/rock.htm (thank you for posting a clear example!)

Last updated

wampov7289
wampov7289

Thanks for your answer. I want the folder structure has several levels: articles/music/rock, but I get this message "Invalid file name: articles/music/rock.htm. File names can contain only alphanumeric symbols, underscores, dashes and dots. Some examples of correct file names: page.htm, page, subdirectory/page" . Is it possible to create multiple levels?

Alt text

axomat
axomat

Hi

I think you have a good point, it only seems to work with one level of subdirectory. This is a limitation I had not noticed before. It does not even work if you create the file manually without using the backend.

Maybe this should be posted as an enhancement request.

wampov7289
wampov7289

Thanks axomat. I appreciate your help. For me it is very important a good organization because I have many pages with different sections. I will throw the question again in the forum. A greeting and thanks again.

I am sorry to speak badly English.

Last updated

docker024202
docker024202

Can we have subfolders now? It's been some time

1-8 of 8

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.