Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content cloning and translation #6540

Closed
wants to merge 1,167 commits into from

Conversation

TFleury
Copy link
Contributor

@TFleury TFleury commented Mar 7, 2016

This PR adds new clone handling to replace export/import logic, and also allow translating a clone of the master content item.

It introduces new Cloning and Cloned content handlers to specify a clone logic that can be different of import/export ones.

ContentManager's Duplicate method don't save a new draft content any more, but create a new content initialized by clone handlers. Admin Content Controller Duplicate action opens a editor to edit the cloned content before saving.

It fixes : #5535, #5089, #4983, #4970, #4538

Sipke Schoorstra and others added 30 commits December 28, 2015 16:05
This change fixes that the `"class"` attribute would be added to the tag even if there are no css classes to assign. This in turn has the effect that the root `Canvas` element is not rendering its outer tags needlessly by default (only if it has at least one attribute).
This enables setting a default value (tokens supported) for the following fields:

- TextField
- TextArea
- UrlField
- HiddenField
- EmailField
- Enumeration
- Query
-
The bug would cause a null reference exception in case there is no alias with an empty string (the home alias).
Due to a bug in the orchard-workflows.js script, the activity toolbox filter was broken.
…migrations and changing affected code to use this
…ortCommand

[Fixes OrchardCMS#6181] Fixed bad assumption about HttpContext
WorkContext & HttpContext: Unused registration and last minor refactoring for better clarity
A handful of compiler errors would appear in most modules while having Razor views open in Visual Studio 2015. Adding a reference to System.Core in Web.config of modules fixes this.
Breaking change: Existing themes relying on Layout and TheThemeMachine
will need to add a reference to this css.
- Added Roslyn CodeDom Nuget packages to Orchard.Web and Orchard.Azure.Web.
- Added the necessary Web.config section to all modules/themes to make the VS editor recognize C# 6 syntax.
- Added a sample/proof use in BadgeOfHonor.cshtml.
LombiqTechnologies and others added 26 commits March 22, 2016 09:24
Cloned content has same culture as original by default
@TFleury
Copy link
Contributor Author

TFleury commented Mar 22, 2016

As @sebastienros asked, I reopened a new PR #6630 based on dev branch. I also removed TranslateContentContext.

@TFleury TFleury closed this Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.