Hey KK - sorry for the direct approach here but I suspect there is a 'yes' or 'no' answer here...
Firstly, I apolgise for been annoying in the sense that I'm trying to do things here beyond the first scope of the great CMS, yet I suspect what I am trying to do might be possible, and while it may not appeal to everyone, it's possible and may demonstrate the flexibility of this CMS.
Ok, so I've adopted the notion to move my "snippets" into a folder in my root - its just makes more sense for someone supporting possible multiple sites in couch to be able to ignore the least ammount of possible overwrites as possible - I like snippets or "embeds" as I prefer them, in my root, thats just me and the way I've been for 4-5 years now.
OK - so, I've now got a file structure like this:
ROOT
- basic template.php
- basic template.php
- basic template.php
EMBEDS
standard_includeslikeheadersanfooters.inc
standard_includeslikeheadersanfooters.inc
list_view_of_news_type_stuff.tpl
list_view_of_news_type_stuff.tpl
list_view_of_news_type_stuff.tpl
etc
EMBEDS > JQM
my_jqjery_mobile_site_version_header.inc
my_jqjery_mobile_site_version_footer.inc
*Those JQM's sit in my embeds folder and the couch require looks like (and works as)
MOBILE*
- News.php
- etc
Now the problem is that any
inside "mobile" will inherit the root folder?
I know I am probably asking a lot here beyond the intended scope - I'm just sandboxing a site where by we can seperate "desktop" from "catered mobile" and keep a clean file structure - and again, I know this is probably not the intended way but it It would be awesome to be able to utilise subfolder like this.
Firstly, I apolgise for been annoying in the sense that I'm trying to do things here beyond the first scope of the great CMS, yet I suspect what I am trying to do might be possible, and while it may not appeal to everyone, it's possible and may demonstrate the flexibility of this CMS.
Ok, so I've adopted the notion to move my "snippets" into a folder in my root - its just makes more sense for someone supporting possible multiple sites in couch to be able to ignore the least ammount of possible overwrites as possible - I like snippets or "embeds" as I prefer them, in my root, thats just me and the way I've been for 4-5 years now.
OK - so, I've now got a file structure like this:
ROOT
- basic template.php
- basic template.php
- basic template.php
EMBEDS
standard_includeslikeheadersanfooters.inc
standard_includeslikeheadersanfooters.inc
list_view_of_news_type_stuff.tpl
list_view_of_news_type_stuff.tpl
list_view_of_news_type_stuff.tpl
etc
EMBEDS > JQM
my_jqjery_mobile_site_version_header.inc
my_jqjery_mobile_site_version_footer.inc
*Those JQM's sit in my embeds folder and the couch require looks like (and works as)
- Code: Select all
<?php require_once( '../couch/cms.php' ); ?>
MOBILE*
- News.php
- etc
Now the problem is that any
- Code: Select all
<cms:show k_page_link />
- Code: Select all
<cms:show k_page_link />
inside "mobile" will inherit the root folder?
I know I am probably asking a lot here beyond the intended scope - I'm just sandboxing a site where by we can seperate "desktop" from "catered mobile" and keep a clean file structure - and again, I know this is probably not the intended way but it It would be awesome to be able to utilise subfolder like this.