Please can I check that this is legitimate and won't cause problems with Couch.
On the current website I'm converting to Couch I have a number of HTML pages which contain lists of various kinds of info - for example on the home page a list of quotes + quote source displayed within a slider.
I am only interested in displaying the LIST - there will be no need for a link from each item in the list to a detail - PAGE VIEW / cloned page (as in the classic example of a blog and as shown in the tutorial).
So, I have been doing a bit of experimenting as a new person on the Couch ... I was wondering if I actually needed to bother with PAGE VIEWs and setting up the xxx.html file in the snippets folder. The home page - with the list of quotes - index.php - has the following at the top:
Followed by the HTML markup which includes:
So index.php is referencing itself with the cms:pages tag. It is giving the results I want on index.php and allows new quotations to be added with no problems. From the Admin panel you can click on VIEW a new page / quotation added and, for example, index.php?p=14 is viewable with all the correct page formatting.
Is this the correct approach to displaying list items?
thanks!
On the current website I'm converting to Couch I have a number of HTML pages which contain lists of various kinds of info - for example on the home page a list of quotes + quote source displayed within a slider.
I am only interested in displaying the LIST - there will be no need for a link from each item in the list to a detail - PAGE VIEW / cloned page (as in the classic example of a blog and as shown in the tutorial).
So, I have been doing a bit of experimenting as a new person on the Couch ... I was wondering if I actually needed to bother with PAGE VIEWs and setting up the xxx.html file in the snippets folder. The home page - with the list of quotes - index.php - has the following at the top:
- Code: Select all
<cms:template title='Home Page' clonable='1' commentable='0'>
<cms:editable name='quotation_text' type='text' />
<cms:editable name='quotation_source' type='text' />
</cms:template>
Followed by the HTML markup which includes:
- Code: Select all
<cms:pages masterpage="index.php" >
<li>
<p><cms:show quotation_text /></p>
<h5><cms:show quotation_source /></h5>
</li>
</cms:pages>
So index.php is referencing itself with the cms:pages tag. It is giving the results I want on index.php and allows new quotations to be added with no problems. From the Admin panel you can click on VIEW a new page / quotation added and, for example, index.php?p=14 is viewable with all the correct page formatting.
Is this the correct approach to displaying list items?
