custom entity not working programmatically - entity

I want to create custom entity programmatically refrence with this example
but I'm facing below error.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "content_entity_example_contact" entity type does not exist.

Related

It's possible to have CKEditor 5 getData() return custom attributes?

I've succesfully managed implementing custom attributes creating upcasts and downcasts converters; all seems to work but I'm now blocked on how to get the actual data back from the editor; if I use:
editor.getData()
I got the html tag (an <img> one) without the custom attributes while in the CKEditor Inspector I can see the attributes in both the model and the view.
How I can retrieve the data with the custom attributes?

How to reference to a Sitefinity Form in a Custom Field

I am working on a custom sitefinity module in which I need to add a custom field where I can select a Sitefinity Form from a list of existing defined forms on the backend. What is the best approach to do this? Precisely how should I approach in defining the field and making its UI?
Unfortunately when I select "Related Data" as field type, Sitefinity Form is not available in the list of built-in data types. The other option (advanced option) I see is a GUID (or array of GUIDs) field type among field types which suggest making a custom code.
CMS version is Sitefinity 8.2 and we are using MVC-based feather components as well as our custom MVC components to develop the website.
Anybody had similar requirement and experience on this?
I would probably create a custom field control. This can be streamlined by using Sitefinity Thunder (because there's a lot of boilerplate C# and JavaScript needed). Once that's in place, you can create a custom field of either type Short Text or GUID, and for the interface, you use your custom field.
In your custom field's code, you can do something like creating a drop down list, where the text for each option is the form name, and the value is either the "name for developers" field or the ID of the form. That way the input is always constrained to IDs pointing to Sitefinity forms. Then when you interact with your custom content items later, you can use this ID/name to look up the referenced form.
As an aside about Related Data: Indeed, that only refers to either built-in content types (blogs, news, etc.) or custom-build dynamic content types. You won't find things like Forms in there.

Adding custom data list to alsfresco share

i am a newbie in Alfresco. I have created custom datalist models, context model and also configured the share config xml file and everything is working well. How ever the datalist is not showing when i log in alfresco. What should i do then.
You should be able to create one of your custom datalists on the page :
http://"myhostandport"/share/page/site/"mysite"/data-lists
Does it show up there?
If not:
-Did you declare your datalist content model as a bean with parent="dictionaryModelBootstrap"?
-Does your content model type extend dl:dataListItem
-You can find all the datalists of your type with this kind of query: #dl\:dataListItemType:'myprefix\:mydatalisttype'

One Core Data Entity Per NSPersistentDocument?

What's the best way to use Core Data if each document on disk corresponds to one Entity instance?
I have a data model file with one entity, and that entity has one attribute of name text and of type Text.
I have a Document.xib that has an NSObjectController that is set to 'Entity' mode and gets the managedObjectContext from the File's Owner. I have an NSTextField that is bound to the Object Controller for the Controller Key 'selection' and the Key Path 'text.' (This is just a test so I can figure out how Core Data works, but my eventual app will also only have one Entity instance per Document)
When I create a new document the textfield says 'No Selection' and is disabled.
I imagine that if I had a Table View or some other kind of way to select from among entity instances the selection would work but I don't nor do I want to. How can I hook up the NSObjectController to only have one Entity instance and to automatically 'select' it?
The intended behaviour is that I type something into the NSTextField, hit Save, close the document, re-open the document and the string in the textfield persists.
This is probably a really basic question but I can't find any tutorials or documents that would address this seemingly simple use case.
Ok, well I haven't figured it all out but my particular issue was being caused by the fact that nothing was being created. I switched out the NSObjectController for an NSArrayController, created an outlet for it in Document.m and added this to windowControllerDidLoadNib:
if (![self.arrayController selectedObjects]) {
[self.arrayController add:#""];
};
Now it seems to just manage the one Entity object.

MVC4 Custom View Engine

I am having issues implementing a MVC4 Custom View Engine to override the default locations for partial views. I have implemented the code in this example.
My issue is that an error is thrown before CreatePartialView is initiated if the path does not match a value in PartialViewLocationFormats array when HTML.Partial is initiated/executed. Nothing is going to match as the objective of this implementation is to have dynamic paths. Any insight would be appreciated.
Just supply the path by your own way instead of using the default way that MVC to
set partialPath from another source such as passing it to view from controller , or creating your view finder class .
return base.CreatePartialView(controllerContext, **partialPath** );