HOWTO: Countdown on Calendar entries

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#707 (In Topic #142)
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’

Here's a simple tutorial on how to use the main_countdown block on entry screens for calendar events.

Difficulty to implement: easy
Difficulty to use: Easy

Step 1:
Edit your CALENDAR_EVENT_SCREEN.tpl file in your theme

Step 2:
FIND

Code

[/semihtml]
{RATING_DETAILS}
[semihtml]


Step 3:
AFTER the +END Tempcode tag, ADD:

Code

[/semihtml]

Countdown

{$BLOCK,block=main_countdown,param={TIME_VCAL},precision=4,tailing=4}

[semihtml]


Save and clear cache

Enjoy!
WARNING: Use at your own risk. Do not edit original files; make copies in the _custom folder overrides.

Last edit: by Patrick Schmalstig


  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top