Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
James Gregory committed Jan 2, 2018
1 parent 0ceedd8 commit 932b64f
Show file tree
Hide file tree
Showing 45 changed files with 2,123 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.cs text=auto diff=csharp
*.html text=auto
*.htm text=auto
*.css text=auto
*.scss text=auto
*.sass text=auto
*.less text=auto
*.js text=auto
*.sql text=auto
*.ttf -text diff
*.eot -text diff
*.woff -text diff
*.woff2 -text diff
*.csproj text=auto merge=union
*.sln text=auto eol=crlf merge=union

*.item -text
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[Oo]bj/
src/**/[Bb]in/
specs/**/[Bb]in/
.nuget/
Deploy/
_ReSharper.*
packages/
artifacts/
*.user
*.cache
*.suo
*.userprefs
*DS_Store
*.sln.ide
.sonar
vars.user.cmd
/.vs
/target
/node_modules
temp/
*.ncrunchproject
*.ncrunchsolution
.vscode
nCrunchTemp*.*
optimized-min.yml
$tf/
31 changes: 31 additions & 0 deletions Community.Foundation.PlaceholderRules.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Community.Foundation.PlaceholderRules", "src\Foundation\PlaceholderRules\code\Community.Foundation.PlaceholderRules.csproj", "{67AB9BDB-23D3-4E84-A14A-2FBBC84F07F8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ReadMe", "ReadMe", "{327F78E7-1973-4647-BA76-B8642845B314}"
ProjectSection(SolutionItems) = preProject
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{67AB9BDB-23D3-4E84-A14A-2FBBC84F07F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67AB9BDB-23D3-4E84-A14A-2FBBC84F07F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67AB9BDB-23D3-4E84-A14A-2FBBC84F07F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67AB9BDB-23D3-4E84-A14A-2FBBC84F07F8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {948E011C-C66D-4304-90A9-09DF72C3DEE2}
EndGlobalSection
EndGlobal
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# Community.Foundation.PlaceholderRules
Sitecore Extension to allow Placeholder rules for managing allowed renderings
Sitecore - Community.Foundation.PlaceholderRules
==============

Summary
--------------

This extensions allows you to manage allowed placeholder settings with rules (similar to insert option rules) instead of configuring placeholder setting items directly. This is helpful when using component driven design or using third party placeholders which can be overwritten with future upgrades (SXA).

Usage
--------------
Manage rules under /sitecore/system/Settings/Rules/Placeholder Renderings/Rules

[View screenshots in the wiki](https://github.com/digitalParkour/Community.Foundation.PlaceholderRules/wiki).


Setup
--------------
Either:
* Install Sitecore package:
\\releases\\Community.Foundation.PlaceholderRules-\*.zip
Or:
1. Include this project in your Helix style solution
2. Update NuGet references to match target sitecore version
3. Install sitecore package for data or enable Foundation.PlaceholderRules.Serialization.config and sync unicorn

FYI
--------------
This was built and tested with Sitecore 8.2 update 5 and update 6. Also works well with SXA.

This package adds the following files:

/bin/Community.Foundation.PlaceholderRules.dll
/bin/Community.Foundation.PlaceholderRules.pdb

/App_Config/Include/Foundation/Foundation.PlaceholderRules.config
/App_Config/Include/Foundation/Foundation.PlaceholderRules.Serialization.config.example

This package adds data items to the following locations:

/sitecore/templates/Foundation/PlaceholderRules
/sitecore/system/Settings/Rules/placeholder-renderings
/sitecore/system/Settings/Rules/Definitions/Tags/Placeholder Renderings
/sitecore/system/Settings/Rules/Definitions/Elements/placeholder-renderings
Loading

0 comments on commit 932b64f

Please sign in to comment.