Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shmuel Kessler 9 posts 32 karma points
    Jul 06, 2012 @ 18:38
    Shmuel Kessler
    0

    Node Sorting issue - related to caching?

    This page http://accessjewishcleveland.org/all-organizations.aspx loads all the nodes of type Organization. Some of the time it's sorted correctly. Other times it's not. While there were certain nodes with names different from their titles, this issue isn't limited to those nodes. We also don't know how to reproduce this but it comes and goes.

    Umbraco 4.7.0 with the following packages (I'm not sure why some are duplicated):

    • Optiem Standard Package v4.5.2
    • ImageGen
    • Sitereactor Standard Values
    • tswe.log4umbraco
    • Config Tree
    • Sitereactor Standard Values
    • XSLTsearch
    • RSS Reader
    • Widgets
    • Membership
    • Navigation Module
    • Search Module (4.5)
    • FamFamFam Icon Package
    • Umbraco Forms
    • XSLTouch
    • AutoFolders
    • uComponents
    • uComponents
    • FamFamFam Icon Package
    • FamFamFam Icon Package
    • AutoFolders
    • Sitereactor Standard Values
    • ImageGen
    • uComponents
    • Document Sorter
    • Umbraco Courier
    • AutoSort
    • Content Maintenance Dashboard

    Thanks!

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 8x admin c-trib
    Jul 06, 2012 @ 18:47
    Chriztian Steinmeier
    0

    Hi Shmuel,

    This is somewhat related to caching - but you should be able to fix it.

    If you're using apply-templates or for-each in the XSLT, you can shove a sort statement in, to make sure to always sort the nodes using the sort order in Umbraco:

    <xsl:for-each select="">
       <xsl:sort select="@sortOrder" data-type="number" order="ascending" />
       <!-- doing stuff -->
    </xsl:for-each>

    It seems that sometimes Umbraco only updates the sortOrder attribute but not the actual order of the nodes.

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft