mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Adding a placement.info file in TheThemeMachine, and in codegen
--HG-- branch : dev
This commit is contained in:
parent
29ee777abb
commit
f7c2e49c72
@ -0,0 +1,17 @@
|
|||||||
|
<Placement>
|
||||||
|
<!-- Customize where the shapes are rendered -->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<Place Parts_Blogs_BlogArchives="Content:before"/>
|
||||||
|
<Place Parts_Blogs_RecentBlogPosts="Content:after"/>
|
||||||
|
<Match ContentType="Blog">
|
||||||
|
<Match DisplayType="Summary">
|
||||||
|
<Place Parts_Blogs_Blog_Description="Content:before"
|
||||||
|
Parts_Blogs_Blog_BlogPostCount="Meta:3"/>
|
||||||
|
</Match>
|
||||||
|
</Match>
|
||||||
|
<Match Path="/About">
|
||||||
|
<Place Parts_Common_Metadata="-"/>
|
||||||
|
</Match>
|
||||||
|
-->
|
||||||
|
</Placement>
|
@ -312,6 +312,9 @@ namespace Orchard.CodeGeneration.Commands {
|
|||||||
File.WriteAllBytes(themePath + "Theme.png", File.ReadAllBytes(_codeGenTemplatePath + "Theme.png"));
|
File.WriteAllBytes(themePath + "Theme.png", File.ReadAllBytes(_codeGenTemplatePath + "Theme.png"));
|
||||||
createdFiles.Add(themePath + "Theme.png");
|
createdFiles.Add(themePath + "Theme.png");
|
||||||
|
|
||||||
|
File.WriteAllText(themePath + "Placement.info", File.ReadAllText(_codeGenTemplatePath + "Placement.info"));
|
||||||
|
createdFiles.Add(themePath + "Placement.info");
|
||||||
|
|
||||||
// create new csproj for the theme
|
// create new csproj for the theme
|
||||||
if (projectGuid != null) {
|
if (projectGuid != null) {
|
||||||
var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);
|
var itemGroup = CreateProjectItemGroup(themePath, createdFiles, createdFolders);
|
||||||
|
@ -79,6 +79,9 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="CodeGenerationTemplates\ModuleRootWebConfig.txt" />
|
<Content Include="CodeGenerationTemplates\ModuleRootWebConfig.txt" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="CodeGenerationTemplates\Placement.info" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
17
src/Orchard.Web/Themes/TheThemeMachine/Placement.info
Normal file
17
src/Orchard.Web/Themes/TheThemeMachine/Placement.info
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<Placement>
|
||||||
|
<!-- Customize where the shapes are rendered -->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<Place Parts_Blogs_BlogArchives="Content:before"/>
|
||||||
|
<Place Parts_Blogs_RecentBlogPosts="Content:after"/>
|
||||||
|
<Match ContentType="Blog">
|
||||||
|
<Match DisplayType="Summary">
|
||||||
|
<Place Parts_Blogs_Blog_Description="Content:before"
|
||||||
|
Parts_Blogs_Blog_BlogPostCount="Meta:3"/>
|
||||||
|
</Match>
|
||||||
|
</Match>
|
||||||
|
<Match Path="/About">
|
||||||
|
<Place Parts_Common_Metadata="-"/>
|
||||||
|
</Match>
|
||||||
|
-->
|
||||||
|
</Placement>
|
@ -116,6 +116,9 @@
|
|||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="TheThemeMachine\Placement.info" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Loading…
Reference in New Issue
Block a user