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

New Post: Error in my Custom Data Provider

$
0
0
If you need a data type attached to a specific page, as an option, of course, you can (I honestly guess):
  1. Create the IAllowedRoles as another global data type that will also have one field as a reference to C1 Page.
  2. Auto-attach it to each page with a Tree Definition:
<ElementStructure.AutoAttachments> 
  <DataType Type="Composite.Data.Types.IPage" Position="Top" /> 
</ElementStructure.AutoAttachments>
Please see How to Auto-Attach Applications
  1. Filter its data elements by specific page using ParentIdFilter in the Tree Def:
<Filters> 
  <ParentIdFilter ParentType="Composite.Data.Types.IPage" ReferenceFieldName="PageId" /> 
</Filters>
Please see How to Filter Data Elements by Parent ID

This approach is used in the Blog package where Blog posts are stored in one global data type (although defined via the C1 Console not programmatically), manually attached to a specific page, filtered by this page's ID

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>