C1 CMS Foundation - .NET based open source web content management system and a bundle of joy!
Hello. I would like to implement PWA features but I have come to the point where I have one last step that needs to be updated in the http response. The Vary
header is added with *
and I can't find where it is added. Also I have tried to remove it using <remove name="Vary" />
then <add name="Vary" value="Accept-Encoding" />
Any suggestions?
Hi there,
What is the best way to organize deploying and synchronizing among dev and production server? Sometimes we do first changes (controls, content, add new types and metadata) on the dev server and some times we modify the production one. Is there any pattern or mechanism to synchronize data on both servers?
Hi. I've recently added two new fields to an in-use page datatype on my home machine and everything works as it should. However, after uploading changes to my GIT repo and then downloading the same changes on my work machine, I'm getting an error whenever I want to edit or open a data record:
'''System.NullReferenceException: Object reference not set to an instance of an object. at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.GetBindings(IData dataObject, Boolean allowMandatoryNonDefaultingProperties)
at Composite.Data.DynamicTypes.DataTypeDescriptorFormsHelper.UpdateWithBindings(IData dataObject, Dictionary'2 bindings)
at Composite.Plugins.Elements.ElementProviders.GeneratedDataTypesElementProvider.EditDataWorkflow.editCodeActivity_ExecuteCode(Object sender, EventArgs e)
at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)
at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
at System.Workflow.Runtime.Scheduler.Run()
System.InvalidOperationException: Error executing workflow b5ef03b4-8946-4ccf-8836-b75aceac03b7
at Composite.C1Console.Workflow.WorkflowFacadeImpl.RunWorkflow(Guid instanceId)
at Composite.C1Console.Workflow.WorkflowFacadeImpl.RunWorkflow(WorkflowInstance workflowInstance)
at Composite.C1Console.Workflow.WorkflowActionExecutor.Execute(String serializedEntityToken, String serializedActionToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer)
at Composite.C1Console.Actions.ActionExecutorFacade.Execute(EntityToken entityToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer, TaskManagerEvent taskManagerEvent)
at Composite.C1Console.Actions.Data.ProxyDataActionExecuter.Execute(String serializedEntityToken, String serializedActionToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer)
at Composite.C1Console.Actions.ActionExecutorFacade.Execute(EntityToken entityToken, ActionToken actionToken, FlowControllerServicesContainer flowControllerServicesContainer, TaskManagerEvent taskManagerEvent)
at Composite.Core.WebClient.FlowMediators.ActionExecutionMediator.ExecuteElementAction(ElementHandle elementHandle, ActionHandle actionHandle, String consoleId)
at Composite.Core.WebClient.FlowMediators.TreeServicesFacade.ExecuteElementAction(String providerName, String serializedEntityToken, String piggybag, String serializedActionToken, String consoleId)
at Composite.Services.TreeServices.ExecuteSingleElementAction(ClientElement clientElement, String serializedActionToken, String consoleId)'''
This page details my .gitignore:
https://baileyweb.online/blog/2019/01/01/Git-ifying-My-Project
Any ideas what is causing this error? Have I missed a path in my .gitignore file?
@burningice2866 . OK, so there weren't any Form Markup files, but I was missing a number of XML files from the /Website/App_Data/Composite/DataStores/ path in my GIT repo. I'm not including all of the CMS in GIT... just the files that specifically relate to my own project. However, I forgot that in order to test that my own code is working, I also need to keep the website, files, and data synchronised between both of my machines. By adding those missing DataStore files back, the errors disapeared.
@mawtex . I did also remove and regenerate the Composite.Generated.dll file as you suggested, but the first time I tried it I got a lot of error messages about missing references from the Package Server add-on. Uninstalling this add-on allowed me to compile the DLL and I was able to reinstall the Package Server add-on afterwards. Not sure why that was, but at least it's back up and running now.
Thanks both for your help.
@DBailey635 deleting Composite.Generated.dll is generally not a good idea if you, or any packages you have installed, have code in App_Code which relies on dynamic datatypes since it prevents the whole website from starting up.
A more robust option is to upvote this feature request and enable C1 to generate the dll when needed Orckestra/C1-CMS-Foundation#634
@Safety1st from the error I see, it looks like the migration from xml to SQL did not complete - did you use the tool in https://c1.orckestra.com/Add-ons/All/Composite.Tools.SqlServerDataProvider to move?
For sure it makes sense you revert to the xml based version and redo the migration, using the tool here.
Hi. as some of you know, I'm creating an add-on for the C1 CMS to allow universities to build their websites faster. I have page datafolder datatypes for courses, subjects, and modules that aren't localised. None of their linked data reference datatypes are localised either. When I use a C# function to retrieve the data and output it as XML for other XSLT functions to render, everything works as expected for the default language website (in this case, EN) http://uni.baileyweb.online/courses/modules/IWD101 . However, when I switch over to a secondary language version of the same website (FR) http://uni.baileyweb.online/fr/courses/modules/IWD101 , the same C# function cannot retrieve the records from the page datafolder datatype.
I've pasted the relevant code to a Gist over at: https://gist.github.com/DBailey635/0782cc76c73c4f6b7452192a0d00f09b , with the error message received printed in a comment below it.
I don't want to specify the default language using ´new CultureInfo("da-DK")´, but in other projects I've done, where datatypes aren't localised, the default language record (EN) usually displays in the secondary language website (FR). Can anyone see what I'm missing, or suggest how to fix the error? Thanks.
new CultureInfo("EN")
), or I can create a localised datatype that links to the correct pages in each website. I hope that makes sense.
@DBailey635 There is a point and click way to nest types in trees, there is also a pretty straight forward XML declarative way to do very customized structures and then there is a C# way for fully customized trees - one of the two first ways will for sure serve your purpose. The C# approach is a ton more work.
Point and click way: Edit the team data type (most deep element to show in tree) and focus on the "Structural representation" and its "Tree grouping" for the fields that reference Group - if you ask for grouping, you get Group folders, showing the related teams. Do the same for group/org.
XML way: see https://docs.c1.orckestra.com/Console/Tree-Definition-Samples/Two-Level-Data-Folder-App
C# way: https://docs.c1.orckestra.com/Console/AttachingElements
I also noticed that <NamedParent Name="PerspectivesRoot"> doesn't work as per documentation. Should I log that as a bug?
Did you first check that you gave yourself permissions to access this new perspective you created? If not, you won't see it. Edit your user or a group you are member off - if you see the new perspective here, give yourself access and reload the console.
I'm still using on vs2017 so can't say for sure with vs2019, but check that you have the components listed at https://docs.c1.orckestra.com/Getting-started/System-Requirements - specifically this part:
Visual Studio 2017 for development
To work with the source code for C1 CMS you need Visual Studio 2017 with the following "Individual Components" installed:
.NET
.NET Framework 4.7.1 SDK
.NET Framework 4.7.1 targeting pack
Compilers, build tools, and runtimes
C# and Visual Basic Roslyn compilers
MSBuild
Development activities
Office Developer Tools for Visual Studio
Windows Workflow Foundation
@davejsmith007 @TechGuyTN I checked and C1 and Vs2019 play nice, you just need to ensure you have the needed components installed:
Launch the "Visual Studio Installer", and click "Modify" for vs2019.
On the "Individual Components" tab, make sure ALL these are checked:
.NET
.NET Framework 4.7.1 SDK
.NET Framework 4.7.1 targeting pack
Compilers, build tools, and runtimes
C# and Visual Basic Roslyn compilers
MSBuild
Development activities
Office Developer Tools for Visual Studio
Windows Workflow Foundation
Then relaunch Vs2019 - "reload" the projects if you still see a project loading error - for me it then loads just fine and all is good.
@mawtex
For that security update from older versions, it says to update by January 2020, but doesn't state if that is January 1, 2020 or January 31, 2020. I am guessing that this upgrade package will disappear unless you are on a paid license at some point, but do you know when this will disappear so I can better figure out my plan of attack for multiple websites, some are taking quite long depending on how old the websites are and how much customization we have done. Thanks.