Options

How to find out CategoryID and SubCategoryID?

stefanstefan Registered Users Posts: 6 Beginner grinner
When working with the API 1.2.2 some methods make use of a CategoryID and SubCategoryID (e.g. smugmug.subcategories.get). But using Java Script there seems no way to find out the current (Sub) Category ID at runtime when not logged in.
There seem to be a classes assigned to the body tag of the page HTML indicating the category and sub category but they do not match the Name or NiceName of the Category or Sub Category in any case.

E.g. I have a Category "Family & Friends" (NiceName FamilyAndFriends). The class in the body tag is "category_Family__Friends".

So is there a way to find out the CategoryID, Name or NiceName of a Category using this class name?

Thank's for your help.
Sign In or Register to comment.