Log in | Register | Lost password

Bottom
PubType for pgCalendar
  • Posted: 05.10.2007, 10:22
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I am having a tough time getting my date fields to come out right in the pagesetter side of tid for pgCalendar and was wondering if anyone had a generic one that I could import and use as a start, or could help me with the code. I am looking to have it be date/time-time with a bool for all day events that will ignore the time portion of it.

    Any help would be great!

    Take Care,
    Mike
  • Posted: 08.10.2007, 19:59
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hey, I emailed you a couple days ago but the only address I could find on your site bounced.
    Email me at darryl@kamloopsepublishing.com and I'll hook you up.
  • Posted: 11.10.2007, 20:11
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I sent you an email a few days ago, but I did find the source of my problem...bool fields.

    Rather than having a bool for if it is an all day event and a start date/time and an end time, I went with a start date, start time, and end time. Then in the template I did :

    Code

    <!--[$startdate|date_format:"%A, %d %B, %Y"]-->

    <!--[if $starttime != "" ]-->

    <br /><!--[$starttime|date_format:"%I:%M %p"]-->

    <!--[if $endtime != "" ]-->

    - <!--[$endtime|date_format:"%I:%M %p"]-->

    <!--[else]-->

    - ???

    <!--[/if]-->

    <!--[/if]-->


    This way it will use what info is present to determine what kind of even it is(all day vs. time-time vs. time-???).

    When I am done making my calendar I will package up a clean vanilla version of it for whoever might need it for making a calendar in the future(would be great to package a few examples with pgCalendar)

    Take care,
    Mike

Template courtesy of Designs By Darren.