Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Access to Static Data (Types) from xslt functions

$
0
0
Hi!

They are automatically created for static data types.

To ensure their automatic generation, you should:
  • Add these attributes to your static data types:
[RelevantToUserType("Developer")]
[Title("Simple")]
public interface MyDataType : IData
{
...
}
  • Ensure creating data store.
Fo the latter:
  • either call the DynamicTypeManager.EnsureCreateStore once
  • or simply add at least 1 item to the data type (e.g. via Tree Defintions, or programatically)

Viewing all articles
Browse latest Browse all 2540

Trending Articles