Announcement

Collapse
No announcement yet.

Articles pagination order?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Articles pagination order?

    Hi, Just wondered which order Articles are sorted by when you enable pagination? Mine appear jumbled somewhat if I enable it.

  • #2
    Articles are sorted by publish date.

    There is a feature request to add sorting to Articles here: https://tracker.vbulletin.com/vbulle...sues/VBV-18768
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      Articles are sorted by publish date.

      There is a feature request to add sorting to Articles here: https://tracker.vbulletin.com/vbulle...sues/VBV-18768

      Hmm. Yes, this holds true for the 1st page of a paginated list of articles for me but when I click onto page 2 the wheels start to fall off...
      Pg1.
      Published Date :
      14/5
      14/5
      14/5
      14/5
      13/5
      11/5
      11/5
      11/5
      10/5
      26/4

      Pg2.
      Published Date :
      24/4
      22/3
      23/3
      15/3
      24/3
      7/3
      23/4
      26/4
      17/4
      8/4

      Comment


      • In Omnibus
        In Omnibus commented
        Editing a comment
        Were those articles edited? I think it works by Last Updated date, not by Last Published Date. I could be wrong about that but I seem to recall it being that way at one time.

    • #4
      I looked at Lastupdate, Published Date and Created but had no joy getting a consistent kind of order to a paginated list of Articles.

      Does anyone know the query VB5 uses to pull back Articles from the DB and display them in paginated lists?

      Comment


      • #5
        Like all other content display, it uses a search query that is modified on the fly by the user's permissions. Most queries in vBulletin 5 are dynamically built. There isn't necessarily a specific query in a file that can be modified to change things.

        Code:
        {vb:rawdata nodes, search, getInitialResults, {vb:raw articleOptions}, {vb:raw articleWidgetConfig.resultsPerPage}, {vb:raw page.pagenum}, 1}
        {vb:data nodeResultsWithViews, node, 'mergeNodeviewsForTopics', {vb:raw nodes.results}}
        Those two lines in the template setup the queries. Since there are no sorting options on the Article Channel Display Module, it comes out as the database server returns the results.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #6
          Ok, thanks for that.

          Is it possible to use an alphabetical index (like with Member List) with Articles?

          Comment


          • #7
            No, it is not possible to change the sorting of articles. There are no options to do so on the Module. That is why I created and linked the Issue Report above.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment


            • #8
              Just wondered if this feature add was thought about/progressed any further?I

              Am using the latest VB5 production/live version.

              Comment


              • #9
                Originally posted by woodmj View Post
                Just wondered if this feature add was thought about/progressed any further?I

                Am using the latest VB5 production/live version.
                There is no progress at this time. Any updates would be in the bug report itself.
                MARK.B | vBULLETIN SUPPORT

                TalkNewsUK - My vBulletin 5.5.4 Demo
                AdminAmmo - My Cloud Demo

                Comment

                Related Topics

                Collapse

                Working...
                X