Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
My calendar will have no more than one event per day, and for each event all I need displayed is an event title of just a few words; I don't need a link to a clonable page.

Give me a clue as to what should be in the "days" portion.

I also need to have a minimum number of items in the admin panel.

Thanks so much...


Phil
Hi and welcome, Phil :)

..for each event all I need displayed is an event title of just a few words; I don't need a link to a clonable page.
Following is the original code (http://www.couchcms.com/docs/concepts/e ... endar.html) that displays the event-titles and also links them back to their cloned pages.
Code: Select all
<ul>
<cms:entries limit='2' skip_custom_fields='1'>
    <li>
        <a href="<cms:show k_page_link />"><cms:show k_page_title /></a>
    </li>
</cms:entries>
</ul>

We can easily remove the link part like this (I've also set the limit to '1' as you said that there won't be more than one event per day)
Code: Select all
<ul>
<cms:entries limit='1' skip_custom_fields='1'>
    <li>
        <cms:show k_page_title />
    </li>
</cms:entries>
</ul>

I also need to have a minimum number of items in the admin panel.
I don't think I fully understood this question. If you meant that you don't want to use clonable pages to represent each event (because you'll never be linking to them), I am afraid, that won't be possible as the calendar works only with cloned pages.
If, however, I understood the question wrong, please post in some more details.

Thanks.
2 posts Page 1 of 1