ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to Use Weblog Entry data in Countdown Plugin?

August 05, 2008 10:17pm

Subscribe [4]
  • #1 / Aug 05, 2008 10:17pm

    WCW

    6 posts

    Hi folks. I’m working on a guest chat feature for my site (guest monitors chat area for an hour at a given pre-announced time) and I am trying to find a good way to deal with the many different timezones my visitors may be coming from. I thought perhaps I could use the Countdown plugin, using the event date information from a weblog entry to set the parameters for the plugin. It would look like this if it worked:

    {exp:countdown day="{Event_Date format=%d}" month="{Event_Date format=%m}" year="{Event_Date format=%Y}" hour="{Event_Date format=%H}" event="Chat"}


    Can this work, and if so, how would I handle parsing order, or includes, or whatever is needed to grab the weblog data before the plugin gets processed?

    Your thoughts are appreciated!

  • #2 / Aug 06, 2008 12:07am

    WCW

    6 posts

    I got it working after realizing that embeds are the last thing parsed. Here’s what my weblog code looks like now

    {embed="includes/count_it_down" day="{Event_Date format="%d"}" month="{Event_Date format="%m"}" year="{Event_Date format="%Y"}" hour="{Event_Date format="%H"}"}

    This passes the right information to the plug-in, which sits in a tiny template that I pull in at the end.

    {exp:countdown day="{embed:day}" month="{embed:month}" year="{embed:year}" hour="{embed:hour}" event="Chat"}
  • #3 / Sep 13, 2009 1:21pm

    wecreateyou

    86 posts

    I’m not sure I understand what you did here. Can you please give an example or explain. sounds interesting.

    Thanks

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases