kentico_radekm
-
2/15/2010 2:46:39 PM
RE:Display document category name?
Hello.
You can use following method for this purpose: CMS.SiteProvider.CategoryInfoProvider.GetDocumentCategories(Int32, String, String)
1. parameter is documentID, 2. parameter is where condition and 3. parameter is orderBy expression. This method returns all categories the document is a member of.
DocumentID you can get: A. In document´s Properties -> General tab, NodeID. B. In database, CMS_Document table. C. Using API (for current document): CMS.CMSHelper.CMSContext.CurrentDocument.DocumentID;
This approach can be used also in your transformation, if you use this code in custom function in transformation.
Best Regards, Radek Macalik
|