Sort order of blocks in page is different when logged in to the manager

I have this code to gather the resources for a page:


The sorting order for the gathered blocks is correct when I’m not logged in to the manager, but as soon as I’m logged in and refresh the page, the first block (header) appears as second.
Any ideas?

I’m using:
Modx 2.8.3
|SEO Pro|1.3.1-pl|
|SEO Suite|2.0.2-pl|

Just found out that when I remove the first line in [[pdoResources…]] the problem is gone.
(but the users need that) (&showUnpublished=[[!isAuthenticated]])

Not sure if you’re still looking for suggestions since you have marked this as solved. But if you have a header that should remain as the first item, could you use the tplWrapper template and place the header block there so that it is always first?

1 Like

Have you tried moving the &showUnpublished property to the end of the list?

1 Like

Hi, thanks for thinking with me… In this template any kind of block can go for a header, hence the conditionalTpls.

That’s a suggestion I’d never have thought of. Thanks, will try asap.

Unfortunately that makes no difference.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.