Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hey couch surfers,

I'm getting ready to launch a new site powered by couch, but I'd like to get some input on something I'm having trouble with. I'd like to set up a list view for each of the virtual folders I have from a clonable template. I've checked out this other post here:
viewtopic.php?f=4&t=10313&p=25114&hilit=virtual+folders+index

but I'm still having trouble wrapping my head around this. Essentially, I'd like to have an index page for each virtual folder that will then list the said folder's pages with links to each page. I've made a physical directory for each virtual folder and generated index.php. So far - so good. Everything seems to work just fine until I enable prettyURLs and generate a new .htaccess for my root directory. Then everything breaks. Even from the admin panel > View, all my pages go 404 - page not found. Can somebody help shed some light on how I might achieve this?


Physical structure
/ (Root Directory)
|__folderTest.php (template)
|____folderTest
|________folder1
|____________index.php
|________folder2
|____________index.php

Virtual Structure clones from folderTest.php
|_folder1
|____test_page1_folder1
|____test_page2_folder1
|_folder2
|____test_page1_folder2
|____test_page2_folder2
There isn't a way to tell a difference between home-view of index.php registered template, residing in physical_folder (site.com/my_template/physical_folder/) and folder-view of my_template.php with a virtual folder (site.com/my_template/virtual_folder/). So either you should avoid ambiguous structure and rewrite the whole thing correctly or just ignore and do not enable Pretty Urls.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
2 posts Page 1 of 1