Orchard Rename Content Type in Migration - orchardcms

I'm hoping to rename an existing custom content type in one of my Orchard modules. Is it possible to do this in a migration?

Yes, but not by using ContentDefinitionManager. The simplest way would be to execute an SQL update query against Settings_ContentTypeDefinitionRecord table using SchemaBuilder.ExecuteSql.

Related

Where does Orchard CMS stored content definition?

I am fairly new to Orchard CMS.
I am going through how a module is created an got a question.
According to the documentation, content definition could be created in two ways:
use admin content definition page
create module project in visual studio
is there any difference?
I created a test content definition and try to find it in the SQL compact database. I can't seem to find it.
Anyone know where that info is stored?
Thanks
You can find the content definition in the following tables in the Orchard database:
Settings_ContentFieldDefinitionRecord
Settings_ContentPartDefinitionRecord
Settings_ContentPartFieldDefinitionRecord
Settings_ContentTypeDefinitionRecord
Settings_ContentTypePartDefinitionRecord
The admin interface uses the same APIs that are used when defining content definition from code, so it's basically the same thing. I tend to define content definition in migrations, as that's the best way to ensure that content definition changes are properly applied on all instances of the application (the migrations automatically run during application startup). The admin interface is intended for users who do not have access to the source code (ex. administrators, not developers).

Orchard v.1.10 I need to update custom user field after creation

I am using Orchard v.1.10.0.0
I need to update custom user field after he is created.
workflow decision activity is missing
How do i do that without it?
Solved by enabling module - "C# Scripting - Provides C# compiler services."

Automatically create record while creating a entity record

I have a project entity and a projectStages entity. I want, when a project record will be created automatically projectStages entities will be created for each stages.Till now I was doing it using plugin.
Just wanted to know if there is any way I within the CRM to do this.
this is a screen shot of the customer security roll.
Thanks.
I would do that using plugins, is there any reason you don't want to use plugins? You could use workflows to create projectstages when a project is created too, that will be asynchronous though.

How to send data to Databse in CMS Made Simple

I am quite new to CMS MAde Simple. I am not able to understand how the
data can be saved to database. I think its in smarty framework.
Storing form data in your database is actually a built-in feature of the FormBuilder module.
To do this add a new field to your form, and choose "*Store Results In Database" as the type of field. Data will be stored in an XML format in the [PREFIX]_module_fb_formbrowser database table.
It uses ADOdb as an "interface" to the database. Basically developers of CMSMS already wrote SQL statements for update and delete content. I am really sorry but this is a very wide topic. The actual purpose of a CMS is to remove the burden from the user to actually know these kinds of stuff. I suggest you first do some reading on PHP, SQL and then come back with a more specific question.
SQL
PHP
CMS Made Simple Documentation

how to add lookup/choice field with data from Active Directory to Sharepoint custom content type

I am trying to create a custom content type in Sharepoint where one of the multiple choice fields needs to get data from Active Directory. I've been looking on Google but haven't found any good solutions. Probably I'd have to create a custom field type?
Thanks!
Here's a blog post on implementing this functionality with AD and Custom Field Types.
EDIT: link is dead, replaced

Resources