I'm a bit confused ? In the code you posted you still use the content service ?
Dave
PS : Never mind. You need all doctypes..so you actually needed them then ContentTypeService. Maybe add some caching so you don't need to get them every time from the database.
dotnetdatasource accessing umbraco context?
hi is it possible to use a dotnetdatasource and access the umbraco context?
i'd like to list all document types in my CMS.
cheers,
Hi Zell,
You should be able to use UmbracoContext.Current in your .NET datasource.
Dave
thank you, perfect! for purpose of completeness - i did the following:
Hi,
I'm a bit confused ? In the code you posted you still use the content service ?
Dave
PS : Never mind. You need all doctypes..so you actually needed them then ContentTypeService. Maybe add some caching so you don't need to get them every time from the database.
Dave
is working on a reply...