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

New Post: Adding Data Pulbished

$
0
0
The important part to take notice of here is this, where you instantiate a connection to your Unpublished tables
new DataConnection(PublicationScope.Unpublished)
adding data here will never ever be avaliable in the Published scope, and you there need to add data to both PublicationScope.Published and PublicationScope.Unpublished. Usually i do a foreach-loop over all possible PublicationScopes and then run the same code.

When you need to Unpublish data you should
  1. Delete it from Published scope
  2. set PublicationStatus on the item in Unpublished scope to "unpublished"

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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