From 2993f015a5917ff51537921b3c5cf6d312a934a6 Mon Sep 17 00:00:00 2001 From: Louis DeJardin Date: Mon, 8 Nov 2010 15:36:24 -0800 Subject: [PATCH] Adding Orchard.Lists module Creates generic List content type as an out-of-box container Will hold ListWidget when written --HG-- branch : dev --- .../Modules/Orchard.Lists/Migrations.cs | 29 ++++ .../Modules/Orchard.Lists/Module.txt | 12 ++ .../Orchard.Lists/Orchard.Lists.csproj | 130 ++++++++++++++++++ .../Orchard.Lists/Properties/AssemblyInfo.cs | 34 +++++ .../Modules/Orchard.Lists/Scripts/Web.config | 18 +++ .../Modules/Orchard.Lists/Styles/Web.config | 18 +++ .../Modules/Orchard.Lists/Views/Web.config | 30 ++++ .../Modules/Orchard.Lists/Web.config | 23 ++++ src/Orchard.sln | 9 +- 9 files changed, 302 insertions(+), 1 deletion(-) create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Migrations.cs create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Module.txt create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Orchard.Lists.csproj create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Properties/AssemblyInfo.cs create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Scripts/Web.config create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Styles/Web.config create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Views/Web.config create mode 100644 src/Orchard.Web/Modules/Orchard.Lists/Web.config diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Migrations.cs b/src/Orchard.Web/Modules/Orchard.Lists/Migrations.cs new file mode 100644 index 000000000..e7163c6bc --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Migrations.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using Orchard.ContentManagement.MetaData; +using Orchard.Core.Contents.Extensions; +using Orchard.Data.Migration; + +namespace Orchard.Lists { + public class Migrations : DataMigrationImpl { + public int Create() { + ContentDefinitionManager.AlterTypeDefinition("List", + cfg=>cfg + .WithPart("CommonPart") + .WithPart("RoutePart") + .WithPart("ContainerPart") + .Creatable()); + + //ContentDefinitionManager.AlterTypeDefinition("ListWidget", + // cfg => cfg + // .WithPart("CommonPart") + // .WithPart("WidgetPart") + // .WithPart("ListWidgetPart") + // .WithSetting("Stereotype", "Widget")); + + return 1; + } + } +} diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Module.txt b/src/Orchard.Web/Modules/Orchard.Lists/Module.txt new file mode 100644 index 000000000..416e83806 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Module.txt @@ -0,0 +1,12 @@ +Name: Lists +AntiForgery: enabled +Author: The Orchard Team +Website: http://orchardproject.net +Version: 0.8.0 +OrchardVersion: 0.8.0 +Description: Description for the module +Features: + Orchard.Lists: + Description: Description for feature Orchard.Lists. + Dependencies: Contents, Containers + Category: Content diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Orchard.Lists.csproj b/src/Orchard.Web/Modules/Orchard.Lists/Orchard.Lists.csproj new file mode 100644 index 000000000..0dc1af284 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Orchard.Lists.csproj @@ -0,0 +1,130 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {137906EA-15FE-4AD8-A6A0-27528F0477D6} + {F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Orchard.Lists + Orchard.Lists + v4.0 + false + + + 3.5 + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + AllRules.ruleset + + + pdbonly + true + bin\ + TRACE + prompt + 4 + AllRules.ruleset + + + + + + 3.5 + + + + + + + + False + ..\..\..\..\lib\aspnetmvc\System.Web.Mvc.dll + + + + + + + + + + + + + + + + + + + + + + {2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6} + Orchard.Framework + + + {9916839C-39FC-4CEB-A5AF-89CA7E87119F} + Orchard.Core + + + + + + + + + + + + + + + $(ProjectDir)\..\Manifests + + + + + + + + + + + + False + True + 45979 + / + + + False + True + http://orchard.codeplex.com + False + + + + + \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Properties/AssemblyInfo.cs b/src/Orchard.Web/Modules/Orchard.Lists/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..0f2e0ed79 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Properties/AssemblyInfo.cs @@ -0,0 +1,34 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Orchard.Lists")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Orchard")] +[assembly: AssemblyCopyright("")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("932b5865-c186-4182-9e79-5a10e59ea685")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Scripts/Web.config b/src/Orchard.Web/Modules/Orchard.Lists/Scripts/Web.config new file mode 100644 index 000000000..41ceda512 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Scripts/Web.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Styles/Web.config b/src/Orchard.Web/Modules/Orchard.Lists/Styles/Web.config new file mode 100644 index 000000000..41ceda512 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Styles/Web.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Views/Web.config b/src/Orchard.Web/Modules/Orchard.Lists/Views/Web.config new file mode 100644 index 000000000..f7f177dd6 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Views/Web.config @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/Orchard.Web/Modules/Orchard.Lists/Web.config b/src/Orchard.Web/Modules/Orchard.Lists/Web.config new file mode 100644 index 000000000..84e1e66cb --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.Lists/Web.config @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Orchard.sln b/src/Orchard.sln index 2f7139dc3..f01aa52a5 100644 --- a/src/Orchard.sln +++ b/src/Orchard.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Modules", "Modules", "{E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5}" @@ -95,6 +95,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.PublishLater", "Orc EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.ContentQueries", "Orchard.Web\Modules\Orchard.ContentQueries\Orchard.ContentQueries.csproj", "{848126A0-9C88-415A-868F-F5F03449D0B6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orchard.Lists", "Orchard.Web\Modules\Orchard.Lists\Orchard.Lists.csproj", "{137906EA-15FE-4AD8-A6A0-27528F0477D6}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution CodeCoverage|Any CPU = CodeCoverage|Any CPU @@ -104,6 +106,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {137906EA-15FE-4AD8-A6A0-27528F0477D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {137906EA-15FE-4AD8-A6A0-27528F0477D6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {137906EA-15FE-4AD8-A6A0-27528F0477D6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {137906EA-15FE-4AD8-A6A0-27528F0477D6}.Release|Any CPU.Build.0 = Release|Any CPU {50B779EA-EC00-4699-84C0-03B395C365D2}.CodeCoverage|Any CPU.ActiveCfg = Release|Any CPU {50B779EA-EC00-4699-84C0-03B395C365D2}.CodeCoverage|Any CPU.Build.0 = Release|Any CPU {50B779EA-EC00-4699-84C0-03B395C365D2}.Coverage|Any CPU.ActiveCfg = Release|Any CPU @@ -546,5 +552,6 @@ Global {8A4E42CE-79F8-4BE2-8B1E-A6B83432123B} = {383DBA32-4A3E-48D1-AAC3-75377A694452} {0DFA2E10-96C8-4E05-BC10-B710B97ECCDE} = {383DBA32-4A3E-48D1-AAC3-75377A694452} {CB70A642-8CEC-4DDE-8C9F-AD08900EC98D} = {74492CBC-7201-417E-BC29-28B4C25A58B0} + {137906EA-15FE-4AD8-A6A0-27528F0477D6} = {E9C9F120-07BA-4DFB-B9C3-3AFB9D44C9D5} EndGlobalSection EndGlobal