Forum for discussing general topics related to Couch.
5 posts Page 1 of 1
I have placed an event calendar (small) on my homepage.

But I do not want to display the event name on the calendar itself (primarily due to lack of space on the calendar)
Instead I want to put a star or a different color on the date of the event and then on mouse over display the event in a popup.

Kindly let me know how to do this. Thanks a lot.
(I usually use jquery qtip for tooltips)
Hi,

The sample code given in the docs at http://www.couchcms.com/docs/concepts/e ... endar.html describes creation of a small calendar in detail. Incidentally, even there we have not shown the full event name (lack of space) - just shown the date using a different CSS class.
Shouldn't be difficult for you add a tooltip at that place.

Following is the relevant code -
<cms:if k_count_entries >
<td class='entries <cms:show tdclass />' >
<a href="<cms:link masterpage='events.php' year=k_year month=k_month day=k_day />"><cms:show k_day /></a>
</td>
<cms:else />
<td class='<cms:show tdclass />' ><cms:show k_day /></td>
</cms:if>

Hope this helps.
Thanks a lot KK.

I got the tool tip working.

But when I add the cms tag the tooltip doesnt show up.
Code: Select all
<a href="<cms:link masterpage='events.php' year=k_year month=k_month day=k_day />" title="<cms:show k_page_title />" ><cms:show k_day /></a>

On viewing the page source, I see the the empty ie., title=""
Please let me know what I might be doing wrong.
Thank you.
To fetch in the pages, we'll need to use the cms:entries tag -
Code: Select all
<cms:entries limit='1' skip_custom_fields='1'>
    <a href="<cms:show k_page_link />"><cms:show k_page_title /></a>
</cms:entries>
Got it working.. thanks a lot KK.
5 posts Page 1 of 1
cron