Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
I have integrated couch on my website's homepage. The integration is such that it would allow the CMS user to enter text into a div. The data in this would always contain a two items and this has been added as:

<ul class="newslist">
<li id="date"><cms:date newsbox_date1 format='M, Y' /></li>
<li><a href="newstemplate" title="Read More" id="newsline"><strong><cms:show newsbox_title1 /></strong> - <cms:show newsbox_content1 /></a></li>
<li id="divider"></li>

<li id="date"><cms:date newsbox_date2 format='M, Y' /></li>
<li><a href="about-track24.php?code=on#ivmsnews" title="Read More" id="newsline"><strong><cms:show newsbox_title2 /></strong> - <cms:show newsbox_content2 /></a></li>
<li id="divider"></li>
<li ><a href="about.php">Read More&nbsp;<i class="fa fa-angle-right"></i></a> </li>
</ul>

So at any given time it will always be two <li> in the <ul>, it is not ever growing as in the case of example "blog".

Question: After integrating cms, my website http://www.abc.com/index loads with empty fields for the above div. However if I enter http://www.abc.com/index?p=12 then the CMS content loads. How do I make the website load the CMS content on http://www.abc.com ? Please help

EDIT: The CMS is added onto the index.php page which loads when I hit my website as www.abc.com. However the CMS does not load. If I enter www.abc.com/index, the CMS would load. Any pointers?
Hi,

From what you described it appears that you have declared your index.php template as clonable.
As you stated -
.. it is not ever growing as in the case of example "blog".
you don't need a template that can have multiple pages.

Please try making the template non-clonable as follows -
<cms:editable title='Home' clonable='0'>
...
</cms:editable>

Now the " p=?1" suffix won't be required to fetch in the data.

As an aside, perhaps you'd like to know a bit more about this behaviour of the template. You can find a discussion under "CLONABLE - THE SCHIZOPHRENIC TEMPLATE" at http://www.couchcms.com/docs/concepts/cloned-pages.html

P.S. You added to your post
when I hit my website as http://www.abc.com. However the CMS does not load. If I enter http://www.abc.com/index, the CMS would load. Any pointers?
This is a different issue and is normally seen when you have both index.php as well as index.html in the root. Accessing http://www.abc.com then causes index.html to load while http://www.abc.com/index brings in the template specified.

Please check if this is the case.

Thanks.
2 posts Page 1 of 1