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.

Problme with "weblog:entires" "and order_by"

October 24, 2010 11:32am

Subscribe [5]
  • #1 / Oct 24, 2010 11:32am

    Filippo_Me

    50 posts

    Hi,

    I have a problem with this code:

    {exp:weblog:entries  weblog="blog1|blog2|blog3|blog4|blog5" sort="asc" order_by="date" limit="1000"}
    
    {entry_date format="%j %F"} <br>
    {title} - {weblog} 
     <br><br>
    {/exp:weblog:entries}

    1) I don’t have an ordered list! I obtain something like:

    Jan, 4
    title a - blog1

    Jan, 5
    title b - blog1

    Jan, 6
    title c - blog 2

    Jan, 5
    title c - blog 1


    Note that if I put sort=“desc” or without sort=“asc” it’s all ok!

    2) For now,  I have about 600 entry but without specify the “limit” parameter i don’t obtain a full list with all the entry! Appears to be like if there is some limit when I don’t specify any ‘limit=’.

     

    Note:
    I’am using ExpressionEngine 1.6.8
    built: 20100121

    Filippo_me

  • #2 / Oct 25, 2010 3:15am

    John Henry Donovan

    12339 posts

    Sargiante,

    You are on a quite old version of EE1.x. Is it possible for you to upgrade to EE1.7 so we are on the same page?

    Appears to be like if there is some limit when I don’t specify any ‘limit=’.

    There is indeed a limit of 100.

  • #3 / Oct 26, 2010 7:35am

    Filippo_Me

    50 posts

    Sargiante,

    You are on a quite old version of EE1.x. Is it possible for you to upgrade to EE1.7 so we are on the same page?

    Yes, probably this week-end.

    Thank you.

  • #4 / Oct 26, 2010 9:17am

    Sue Crocker

    26054 posts

    OK, just reply to this post when you’ve upgraded. We’ll be here.

  • #5 / Oct 30, 2010 8:14am

    Filippo_Me

    50 posts

    Ok,
    now I’am on 1.7.0.
    The problem still persist…

  • #6 / Oct 31, 2010 6:12pm

    Greg Salt

    3988 posts

    Hi sargiante,

    Please confirm that you are using the correct name for the orderby parameter. The code example you posted above uses ‘order_by’ rather than ‘orderby’.

    Cheers

    Greg

  • #7 / Oct 31, 2010 10:13pm

    Filippo_Me

    50 posts

    Same result!

    {exp:weblog:entries  weblog="blog1|blog1|blog3|blog4|blog5" sort="asc" orderby="date" limit="10000"}
    {entry_date format="%j %F"} <br>
    {title} - {weblog} 
     <br><br>
    {/exp:weblog:entries}


    Let me know if you need more info.
    Thank you.

  • #8 / Nov 01, 2010 4:06pm

    Ingmar

    29245 posts

    When you leave out the “orderby” parameter, or use a different one (say entry_id instead), does that work? Are you having any sticky entries? Those would always come first.

  • #9 / Nov 05, 2010 6:15am

    Filippo_Me

    50 posts

    Are you having any sticky entries?

    Yes…

    Now works perfectly! (with sticky=“off” tag)

    Thank you.

  • #10 / Nov 05, 2010 7:11am

    Ingmar

    29245 posts

    Glad to see that solved it. Post again as needed, please.

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

ExpressionEngine News!

#eecms, #events, #releases