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.

changing sort order in a weblog:entries does not work

July 15, 2010 2:42pm

Subscribe [3]
  • #1 / Jul 15, 2010 2:42pm

    Kurt Kellens

    2 posts

    Helo,

    I’m a newbie in EE. The output of this simple code below does not work when I’m changing the sort parameter from “desc” to “asc”.
    I’ve printed the result of the {entry_id} where all the id’s have a different numeric value.

    My version: 1.6.9 build 20100415.

    Does anyone has a clue?

    Regards,

    Kurt Kellens


    This is the code:

    {exp:weblog:entries weblog="articles" orderby="entry_id" sort="desc"}
            <h1>{title}</h1>
            <div id="content">
    
    
    
                <div class="block left">
                  <!-- start block left-->
                  {dc_left}
                  <!-- end block left -->
                </div>
                <div class="block right shadow">
                    <!--start block right -->
                   {dc_body}
                    <!--end block right -->
                </div>
              
              <div class="block-wide">
              <!-- start block wide -->
              {dc_body}
              <!-- end block wide-->   
              </div>
              
            </div>
            
    {/exp:weblog:entries}
  • #2 / Jul 15, 2010 4:27pm

    Ingmar

    29245 posts

    Welcome to the forums, Kurt. When you say “does not work”, do you mean it doesn’t show anything? Or is it just the sort order that does not change?

    Are you using any extensions?

  • #3 / Jul 16, 2010 3:13am

    Kurt Kellens

    2 posts

    Helo Ingmar,

    Thank you for helping me out.

    With “not working”, I mean: “changing the sort order does not changes the output”.

    I’m just using two extension:
    - Tiny MCE Extension for EE (v.1.0.1)
    - jQuery for the Control Panel (v.1.1.1)

    Here you can see the result where I’ve printed out the title and the entry_id.
    http://www.datacross.be/index.php/DC

    Regards,
    Kurt Kellens

  • #4 / Jul 16, 2010 1:37pm

    Kurt Kellens

    2 posts

    Hi Ingmar,


    I’ve found where “the problem” was located… There was an entry flagged as “sticky”.
    So that will explain enought!

    Thank you for helping me out!
    This thread can be closed


    Regards,
    Kurt Kellens

  • #5 / Jul 16, 2010 8:09pm

    Brandon Jones

    5500 posts

    Thanks Kurt. Don’t hesitate with further questions.

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

ExpressionEngine News!

#eecms, #events, #releases