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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

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

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

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

Post 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}
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

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

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”