leoric Posted October 30, 2013 Share Posted October 30, 2013 hi,everyone! i have two issues : ----------------------------------------------------------------------------------------------------------------------------------------- 1.the first (serious): there is a page tree like this in my site backend : site category A child-id 1 child-id 2 child-id 3 .. newest page... category B child-id 1 child-id 2 child-id 3 ... newest page... category C child-id 1 child-id 2 child-id 3 ... newest page... and i wana be this: (some category's children reverse sort by id/created ,such as category A and C ; there two cateogries have unlimited articles.): site category A newest page... .. child-id 3 child-id 2 child-id 1 category B child-id 1 child-id 2 child-id 3 ... newest page... category C newest page... .. child-id 3 child-id 2 child-id 1 then i do this manipulate: edit page" category A/C" -> children ->sort settings -> children sortted by (created) And checked "Reverse sort direction?" after this manipulate,i found its not working ,there nothing be changed at last i use this module : "Pagetree Add New Childs Reverse" http://modules.processwire.com/modules/page-tree-add-new-childs-reverse/ after module configuration completed, its still not working. -------------------------------------------------------------------------------------------------------------------------------------------------------- 2.another one is very funny: category A and category C have pagination. (code: $page->children("limit=12,sort=-id"); ) in frontend page, if i login system, in front page the sort is not work ,when i logout its working. like this: when i logged in ( sort=-id, not work): page-id 1 page-id 2 page-id 3 page-id 4 ... but when i logout( sort=-id, work correct) page-id 4 page-id 3 page-id 2 page-id 1 ... -------------------------------------------------------------------------------------------------------------------------------------------------------- what caused those issue? it looks like when i login system "sort=-id/sort=-created" will not work. i had read so many topics but they cant solve my issue. ---------------------------------------------------------------------------------------------------------------------------------------------------------- PS: these days i have been using PW do my project. and there are many problems have been resolved in forums. in the fact its difficult for me learn PW(i am from china,there no chinese PW helpful resource in internet),my english is not good enough.most of the time i have to use dictionary.but i really like PW. thanks! Link to comment Share on other sites More sharing options...
leoric Posted October 31, 2013 Author Share Posted October 31, 2013 ok,finally i found the reason caused these issues. my MySQL Database Version 5.0.51b, and i upload to my server (MySQL Version: 5.0.95) ,its work perfect. this topic is helpful.. http://processwire.com/talk/topic/4047-drag-and-drop-page-sorting-with-blog-profile-not-working/ thanks all. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now