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.

start_on date display issue

January 03, 2011 9:16pm

Subscribe [4]
  • #1 / Jan 03, 2011 9:16pm

    i’m trying to display a list of future calendar events using the following code:

    {exp:channel:entries channel="calendar" orderby="date" start_on="{current_time format='%Y-%m-%d %H:%i'}" show_future_entries="yes" dynamic="no"}        
        <div class="newsItem">
            <a href="/calendar/details/{url_title}"><h2>{title}</h2><p></a><br />
            <em>{entry_date format="%F %d, %Y"}</em><br />
            {calendar_description}<br />
        </div><br />
    {/exp:channel:entries}

    the issue that i’m having is that some of the entries that currently exist and who’s status is open are not being displayed. i’ve included a screen of the list on the site and the actual entries within edit tab of the cp.

    i’m running ee 2.1.1 on engine hosting.

  • #2 / Jan 04, 2011 9:09am

    have since updated to the most recent version of ee yet the issue persists.

  • #3 / Jan 04, 2011 5:51pm

    Ingmar

    29245 posts

    Are the entries expired, perhaps?

  • #4 / Jan 04, 2011 7:29pm

    i’ll be damned, looks like that was indeed the issue. i could have sworn i double checked those. however, now i have an issue where i can’t get the entries to sort correctly by date.  ideally i would like them to be listed from the most recent on, but right now they seem rather random. i’ve played with several permutations of the following code to no avail.

    {exp:channel:entries channel="calendar" orderby="date" sort="asc" start_on="{current_time format='%Y-%m-%d %H:%i'}" show_future_entries="yes" dynamic="no"}
  • #5 / Jan 05, 2011 10:39am

    Sue Crocker

    26054 posts

    RWS, when you say random, what do you mean? Was this a new install, or an upgrade from an earlier version of EE?

  • #6 / Jan 05, 2011 11:01am

    by random i mean there doesn’t seem to have a clearly discernible pattern to the order that these entires are being displayed (such as desc or asc). i’ve played with several options related to both the orderby and sort tags, but nothing seems do much to alter the order. iv’e included another screen shot to show how it’s showing up now…

    this has always been an ee 2 installed site that was just recently upgraded from v2.1.1 to v.2.1.3 just after i noticed this particular issue.

  • #7 / Jan 05, 2011 5:51pm

    Ingmar

    29245 posts

    Just to make sure, none of the entries are sticky, are they?

  • #8 / Jan 05, 2011 6:08pm

    no, there doesn’t appear to be any stickiness going on.

  • #9 / Jan 06, 2011 10:37am

    Sue Crocker

    26054 posts

    If you take out the start_on and sort asc, does that work?

  • #10 / Jan 06, 2011 4:56pm

    no.

  • #11 / Jan 07, 2011 8:10am

    just to be clear, does anyone know if the code that i initially have above flawed in some way? can what i’m asking be done? i feel like i’m really close but i need to get some resolution on this today or i may need to move on to something like solspace’s calendar module.

  • #12 / Jan 07, 2011 2:31pm

    Sue Crocker

    26054 posts

    I’m thinking it has to do with how the content was added. What I’d like to have you try is to delete one of the problematic entries and put in a new one with the same values. Does *that* work?

  • #13 / Jan 07, 2011 5:22pm

    that seemed to be the issue sue. thanks, you’re a life saver.

  • #14 / Jan 09, 2011 5:02pm

    Greg Salt

    3988 posts

    Hi running with scissors,

    So, you’re good with this now? Can I close this thread?

    Cheers

    Greg

  • #15 / Jan 10, 2011 11:29am

    yes, yes you can. thanks.

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

ExpressionEngine News!

#eecms, #events, #releases