Page 1 of 1

>more link in Calendar - not always needed, but sometimes needed...

Posted: Thu Nov 02, 2006 5:56 am
by Darwin Web Design
Hi,
I'm using CMSMS 0.13 Canary with Calendar 0.7 stable.

It's really good, but some of my calendar event items are only one line (eg See Xyz Band playing tonight at 8pm) and others are quite long (eg Come to this event, this is how you register, this is who will be there, bring the kids, photos, logos etc).

With the simple one liner event, I don't need a link to a full page of info, as my client has nothing else to add and making the visitor click the link for the sake of one line of text doesn't seem worth it.

Is there a way to program the calendar to omit the "more" link if there is no text added in the "Description" box?  If so, could someone please help.

For example, on the summary home page the first item doesn't need a link, but the second one does:

4 November 2006
Bandxyz playing on stage 8pm-12mn

7 November 2006
Melbourne Cup Lunch
more >>

Thanks

Re: >more link in Calendar - not always needed, but sometimes needed...

Posted: Thu Nov 02, 2006 9:08 am
by tsw
which template are you using?

for the list template the change would be something like this

{if $detail == 1}
{if $event.event_details !="" && $event.event_details != "
"}
{$lang.details}: {$event.event_details}
{/if}
{else}
            {if $event.event_details !="" && $event.event_details != "
"}

  {$moretext}
            {/if}
{/if}

Re: >more link in Calendar - not always needed, but sometimes needed...

Posted: Wed Nov 08, 2006 1:26 am
by Darwin Web Design
Thank you so much,
I was actually using the Upcoming Template but applied the same code.  Amazing how two little lines of code can make such a difference.  I think this should be added to the main Calendar Module for everyone else to use.  I've noticed on people's websites you often click off to a blank page that doesn't give you any more info, this is the solution to that problem.

Regards
Aussie  ;D