Dispay profile category in right order
Hi. I have some problem with sorting out which category of profile(core module) to show on user page first if i have more then one of it. ex:. I create 2 category on administrator page with some fields on each. category A field A_A filed A_B category B field B_A field B_B Then user fil in this field with data and try to review it on his page aka ( example.com/user/3). And it displays the category "B" before "A" which is not good. I discover that it gets it from database with query "SELECT * FROM profile_fields WHERE visibility != 4 ORDER BY category, weight." So there is all good. Then it construct the array of this fields. And Dev_render page show me that all good with order there too. But still on page it on wrong order. I find the work around that if i add DESC to query on category the display will be ok. Any idea why it happened? PS. Tested on all default theme. -- With best wishes, Anatoly Belyaev
Forgot to add it is Drupal 6.14 On Sat, Nov 7, 2009 at 1:46 PM, Belyaev Anatoly <tolya.msu@gmail.com> wrote:
Hi. I have some problem with sorting out which category of profile(core module) to show on user page first if i have more then one of it. ex:. I create 2 category on administrator page with some fields on each. category A field A_A filed A_B category B field B_A field B_B Then user fil in this field with data and try to review it on his page aka (example.com/user/3). And it displays the category "B" before "A" which is not good. I discover that it gets it from database with query "SELECT * FROM profile_fields WHERE visibility != 4 ORDER BY category, weight." So there is all good. Then it construct the array of this fields. And Dev_render page show me that all good with order there too. But still on page it on wrong order. I find the work around that if i add DESC to query on category the display will be ok. Any idea why it happened? PS. Tested on all default theme.
-- With best wishes, Anatoly Belyaev
-- With best wishes, Anatoly Belyaev
participants (1)
-
Belyaev Anatoly