Get the categories in order.
Posted: Mon May 24, 2010 10:51 am
Hi,
I am currently using the
methos to get the root category and then recurse on this to build a menu.
All is fine except I have just noticed that the categories are ordered as they wre created. not as they are organised in the admin screen.
In fact, changing the order in admion has no effect.
Can you tell me how I get the root category and the any other category by categoryId whilst preserving the order set in admin and also only including active categories.
Thanks.
R.
I am currently using the
Code: Select all
CategoryCollection categories = CategoryDataSource.LoadForParent(categoryId, true);
All is fine except I have just noticed that the categories are ordered as they wre created. not as they are organised in the admin screen.
In fact, changing the order in admion has no effect.
Can you tell me how I get the root category and the any other category by categoryId whilst preserving the order set in admin and also only including active categories.
Thanks.
R.