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.

incorrect display date_heading on archive site

September 18, 2008 4:58pm

Subscribe [2]
  • #1 / Sep 18, 2008 4:58pm

    BDuJag

    33 posts

    Hi,

    I have build an archive. The articles are ordered by expiration date, which is set in all entries.

    Now on the archive Side you can see only June, September and November. But there are Articles with an expiration date in August and Oktober.

    Why are these articles not displayed under the correct month?
    Has somebody an idea?

    Below you can see the code and here is the link to the archive side


    Thanks for your help
    greetings britta

    {exp:weblog:entries weblog="termine" show_expired="yes" orderby="date" sort="desc" limit="20"}
    
    {date_heading display="yearly"}
    <h2 class="archiv">{expiration_date format="%Y"}</h2>
    {/date_heading}
    {date_heading display="monthly"}
    <h3>{expiration_date format="%F"}</h3>
    <p>{/date_heading}</p>
    
    <p><ul><br />
    <li><a href="http://{title_permalink=">{title}</a></li><br />
    </ul>

  • #2 / Sep 18, 2008 6:28pm

    Ingmar

    29245 posts

    You’re “showing” only 20 articles, even though that’s cut down to three months with the “monthly” header. Making sense?

  • #3 / Sep 19, 2008 4:45am

    BDuJag

    33 posts

    I tried it with a limit of 50, 100, nothing changed.
    Moreover the site contain a pagination…

    Something else what I can do?

    Thanks!
    britta

  • #4 / Sep 19, 2008 6:01am

    Ingmar

    29245 posts

    Check the usual, statuses other than “Open”, an entry_date in the future?

  • #5 / Sep 19, 2008 6:25am

    BDuJag

    33 posts

    no, all statuses are “open” and no entry_date in the future is set.

    I checked the expired dates of all entries but same result: August and Oktober are not shown.

    But if I changed the code

    {expiration_date format="%F"}
    to
    {entry_date format="%F"}

    the correlation is correct.

  • #6 / Sep 19, 2008 6:40am

    Ingmar

    29245 posts

    Perhaps some of the entries don’t have an expiration date set?

  • #7 / Sep 19, 2008 6:53am

    BDuJag

    33 posts

    no, all this entries have an expiration date, I checked it twice.

  • #8 / Sep 24, 2008 4:14pm

    Lisa Wess

    20502 posts

    Did you still need help with this?

    One of the first things I noticed is that you said they’re ordered by expiration date but your orderby= says by date.  I wonder if that is throwing this off.

  • #9 / Sep 24, 2008 4:58pm

    BDuJag

    33 posts

    Well yes, I need.

    I tried both: orderby=“date” and orderby=“expiration_date”.
    Actually the second option is online.

    I tried different possibilities, but there is still a problem with the correlation between some entries and the date heading.

    Here is a link to the archive site: archive site
    There you will see an test entry, expiration date 2.October. This is assigned to the month “November”. So actually only 1 entry expire in November (the first link on the archiv site). The other 4 entries expire in October.
    Just as in September: the last two links expired in August.

    Maybe there is a missmatch in the time konfiguration of the ee installation? But I don’t know where to look.

    Thanks for your help.

    greetings britta

  • #10 / Sep 24, 2008 5:05pm

    Lisa Wess

    20502 posts

    I believe that the problem is that the date_heading works off the entry_date, but you are outputting the expiration date.  Unless these are the same, then they may not always match up in the same area.

    Can you, perhaps, take a step back and describe in plain English what your goal is?

  • #11 / Sep 24, 2008 5:13pm

    BDuJag

    33 posts

    Well, my goal is a correct correlation between the entries and the month, when they expire.

  • #12 / Sep 24, 2008 5:23pm

    Lisa Wess

    20502 posts

    What is your actual display goal for this page?  You can show the correct expiration date with the entry without the date_heading, which is where the confusion is coming in.

  • #13 / Sep 25, 2008 4:14am

    BDuJag

    33 posts

    Yes, that is ok, but without the ’ date_heading fomat=“monthly” ’ any entry is displayed with the month.
    But I will try to find a way, that my customer is pleased with the archive displayed.

    Anyway thanks for the help bzw. the info how the date_heading works.

    greetings
    britta

  • #14 / Sep 25, 2008 10:42am

    Robin Sowell

    13255 posts

    Glad you’re squared away on the issue.  If you still need it by expiration date, might take a look at this rather old thread on how to do it via php in the template.

    Otherwise, are you all set?

  • #15 / Sep 25, 2008 4:34pm

    BDuJag

    33 posts

    Well, I found a way to sort the entries by expiration date without the date_heading monthly and now it’s fine.
    But thanks for the link, I will have a longer look on it!

    greetings
    britta

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

ExpressionEngine News!

#eecms, #events, #releases