First of all I'd like to say that I love couchCMS, and I know my client will love the simplicity and elegance of the system once it's working. Bought a license before I even have it implemented. Great work.
So my site is basically programmed as a single file template system (index.php) with urls like "index.php?content=home", where the value of the content tag is used to then include a segment of content from a file such as "pages/home.html" (using a php include command). With my initial attempt at bringing couch into that system, regardless of which html file is pulled in for the content, Couch sees it as just the outer "index.php" file and creates a template for that page. If I put "<cms:template title=''" tags in multiple "pages", it works, but each time a new page is loaded it overwrites the name of the same template.
Is there an easy way to implement couch into the site as I've currently got things set up? Or am I going to have to change the setup so each page has it's own .php file? I'm thinking perhaps there some way I can pass an argument to Couch within this one PHP file (based on which page is being loaded) to coerce it into creating separate templates for each virtual page?
Not sure if it's important, but I use mod rewrite as well so the visible URL (to use the above example) would be "home.html", which then gets translated to index.php?content=home behind the scenes. I tried using couch's pretty URL system but it rewrote URL parameters in an ugly way, and the above problem still persisted.
Thanks!
So my site is basically programmed as a single file template system (index.php) with urls like "index.php?content=home", where the value of the content tag is used to then include a segment of content from a file such as "pages/home.html" (using a php include command). With my initial attempt at bringing couch into that system, regardless of which html file is pulled in for the content, Couch sees it as just the outer "index.php" file and creates a template for that page. If I put "<cms:template title=''" tags in multiple "pages", it works, but each time a new page is loaded it overwrites the name of the same template.
Is there an easy way to implement couch into the site as I've currently got things set up? Or am I going to have to change the setup so each page has it's own .php file? I'm thinking perhaps there some way I can pass an argument to Couch within this one PHP file (based on which page is being loaded) to coerce it into creating separate templates for each virtual page?
Not sure if it's important, but I use mod rewrite as well so the visible URL (to use the above example) would be "home.html", which then gets translated to index.php?content=home behind the scenes. I tried using couch's pretty URL system but it rewrote URL parameters in an ugly way, and the above problem still persisted.
Thanks!