Graffiti Client API - Category List
Graffiti CMS includes a library in the Graffiti download called Client API, which can be found in the Utility directory. The Client API can be used to send or retrieve data from a Graffiti installation. This tip provides the code to download a list of categories from a Graffiti CMS site. Note that the username/password and url will need to be modified.
GraffitiService gs = new GraffitiService("admin", "password", "http://localhost/api");
try
{
PagedList<Category> plc = gs.Categories.Get(new NameValueCollection());
foreach(Category c in plc)
Console.WriteLine(c.Name);
}
catch (GraffitiServiceException gse)
{
Console.Write(gse.Message);
}
8/14/2008

Hi,
I have sub categories under a parent category. For example I have category name "Test". Under the test I added "Zebra" as a subcategory. Then as soon as I add another sub category named "Snail" under "Test", the sub categories are alphabetically sorted, means "Snail" comes first then "Zebra". I want the order the way I am adding it which is first "Zebra" and then "Snail".
One of my client wants the subcategories not to be alphabetically sorted. Your help is appreciated
Regards
Taimur