I was idly browsing through the list of Couch tags - some of which I don't know yet ... and came across the page_exists tag. An example is given as follows:
I can't make full sense of this - so am wondering if you could explain KK. I understood clones to be pages of a blog say, so we can create a list view of blog entries and clones of blog for all the single page views. In your example it seems that a single page, Contact Us has been cloned out of another single page, Index/Home page. Or is this an example where sub-navigation / nested pages have been assumed? I'm just wondering if there is a big gap in my understanding and use of cloned pages here?!
<cms:page_exists 'contact-us' masterpage='index.php' />
The above snippet is checking for the existence of a page named 'contact-us' that has been cloned out of a template named 'index.php'.
I can't make full sense of this - so am wondering if you could explain KK. I understood clones to be pages of a blog say, so we can create a list view of blog entries and clones of blog for all the single page views. In your example it seems that a single page, Contact Us has been cloned out of another single page, Index/Home page. Or is this an example where sub-navigation / nested pages have been assumed? I'm just wondering if there is a big gap in my understanding and use of cloned pages here?!