-
Notifications
You must be signed in to change notification settings - Fork 12
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
Default Fallback Processor Feature #26
Open
chrissigmon
wants to merge
74
commits into
HedgehogDevelopment:master
Choose a base branch
from
chrissigmon:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 63 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
8005c68
Remove lib ReadMe file
e7693f9
Add Sitecore NuGet folder
ed76358
Ignore packages
97dfea3
Remove direct references to Sitecore
8b3cd80
Remove direct references to Sitecore
389ada4
Remove direct references to Sitecore
5f62c5c
Add Sitecore NuGet
53abfa2
Add Sitecore NuGet
d9f9630
NuGet In Project
0f33af7
Sitecore NuGet Packages
cc01e98
Sitecore NuGet Packages
24b7f3c
Add Create and Delete Event Handlers to config file. Also formated co…
6931f80
Add Sitecore NuGet packages
aaf75c3
Create Field FallBack Item Deleted Handler
9a634ba
Created Default Template Demo Folder Item
985a2ae
Create Deafult Items Demp Folder Item
e32e57d
Moved events handlers to their own config file to keep from confilict…
d5200e5
Add properties to get default locations
65a1c57
Create FieldFallbackEvents config file. Leave in example suffix until…
71ab4fd
Create Initial DefaultValuesItemProcessor
6a9215b
Change Demo Folder type in Sitecore
11a3afe
Move Processor Config from Kernel to Processor Project
1e5eb62
Changed event from item:created to item:saved when creating new templ…
87f1346
Field Fall back Item Deleted Handler Place Holder add comment that th…
68559cc
Alpha version of FieldFallBackItemCreatedHandler. This will create a …
824be34
Add NuGet Packages and new files to Processors project
d4786ba
Added DemoFolder for Auto create items for Sitecore
185c164
Create item extensions for use within the module
017809a
Add the database to the config file to ensure we are only working wit…
107b608
Major refacroting to Created Handler to use background timer, Extensi…
6391aa0
Added database setting to the config file and changed the event from …
dff92ed
Modify GetParentContnetPath parameter. Add specific extension method …
c1b5228
Modify to check for template to include folders. Conditionally create…
91cadae
Include ItemExtension Class
b428cea
Add Fallback Defaults Folder ID for custom base folder template
720f7d5
Add method to get Fallback Defaults Folder ID from config file
55dfab2
Change GetItem for folder to use ID from config file
142a2fa
Add Folder items
2497f93
Add Items to Project
c879b50
Refactored and renamed Extension Method. Fixed bug in getting the ful…
dfe0ddc
Code cleanup
0d1327b
Code GetFallbackValue method for Default values.
965c7e1
Renamed config file to be identififiable with the Processor that util…
76d0b0b
Basic Documentation of DefaultValuesItemProcessor in FieldFallback_01…
c4e867a
Disable item:deleting event handler
cc56996
Rename DefaultValuesItemProcessor to DefaultValuesFallbackProcessor
645c9cc
Remove delete event handler. Add processor patch for handling templat…
6579c4a
Change Get Value Safe parameters
e281e3a
Remove the Delete Handler and move the delete process to a Pipeline P…
1f58ac6
Create the DeleteItems Pipeline that is responsible for deleting/recy…
f7345f2
Remove Fallback Delete Handler from project
1bbf227
Changed Usage description to correctly state order of Fallback for th…
c271014
Add ReadMe.md to FieldFallback project and modify Solution ReadMe.md
919c86e
Remove comment
6ccd9ff
Changed setting names to be more inline with processor it applies to
599375a
Renamed files to be inline with processors and refactored DeleteItems
1840d85
Fixed processor location
77af779
Removed ItemExtension and replaced with class
a897625
Changes from renaming extension method
7321aa2
Renamed Linq identifier for clarification
1b2f964
Inherit DefaultValuesItem from CustomItemBase allowing it to gain its…
a7f463b
Code reduction on return of Item
e8a8d94
Change usage of DefaultvaluesItem
d0c230d
added applicationhost.config to the .gitignore
bee744d
removed TDS Global config file from the solution
75e6e98
Commented out the DefaultValuesFallbackProcessor by default
e594af8
Change the processor to return the item from the database and not the…
42ebc85
Move constructor to top of method
8ce79a9
Add more documentation. Make sure to remove .example for this to be i…
25a604f
Change comment to be more descriptive
1f92a75
Reduce code to simplify getting content path. There is no reason to g…
4d83fe1
Create Default Items for Fallback Item
427cf63
Moved properties from seperate config file to base config file
bea5a96
Reorganize config files
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/Demo.Sitecore.Master/sitecore/content/FieldFallbackDemo/DefaultItemsDemoFolder.item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
----item---- | ||
version: 1 | ||
id: {0E261AC4-227A-4B25-AA38-EC4AF10AA989} | ||
database: master | ||
path: /sitecore/content/FieldFallbackDemo/DefaultItemsDemoFolder | ||
parent: {1C980364-5C74-4CDD-9C08-E718672C8ED5} | ||
name: DefaultItemsDemoFolder | ||
master: {00000000-0000-0000-0000-000000000000} | ||
template: {0EF07759-6627-43BD-A7C7-AE6C0EFB985A} | ||
templatekey: Folder | ||
|
||
----version---- | ||
language: en | ||
version: 1 | ||
revision: fd774789-9e28-45fa-b94b-7614e6e49e76 | ||
|
||
----field---- | ||
field: {25BED78C-4957-4165-998A-CA1B52F67497} | ||
name: __Created | ||
key: __created | ||
content-length: 15 | ||
|
||
20160329T100623 | ||
----field---- | ||
field: {8CDC337E-A112-42FB-BBB4-4143751E123F} | ||
name: __Revision | ||
key: __revision | ||
content-length: 36 | ||
|
||
fd774789-9e28-45fa-b94b-7614e6e49e76 | ||
----field---- | ||
field: {D9CF14B1-FA16-4BA6-9288-E8A174D4D522} | ||
name: __Updated | ||
key: __updated | ||
content-length: 34 | ||
|
||
20160329T100623:635948427832628422 | ||
----field---- | ||
field: {BADD9CF9-53E0-4D0C-BCC0-2D784C282F6A} | ||
name: __Updated by | ||
key: __updated by | ||
content-length: 14 | ||
|
||
sitecore\admin |
11 changes: 11 additions & 0 deletions
11
...Demo.Sitecore.Master/sitecore/templates/FieldFallbackDemo/DefaultTemplatesDemoFolder.item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
----item---- | ||
version: 1 | ||
id: {4328FA62-B0B8-4410-8ECA-8616D5487926} | ||
database: master | ||
path: /sitecore/templates/FieldFallbackDemo/DefaultTemplatesDemoFolder | ||
parent: {FCB3EB2F-2EAE-45E0-9653-5CC9DF7F114B} | ||
name: DefaultTemplatesDemoFolder | ||
master: {00000000-0000-0000-0000-000000000000} | ||
template: {0437FEE2-44C9-46A6-ABE9-28858D9FEE8C} | ||
templatekey: Template Folder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Sitecore" version="6.5.0.120706" targetFramework="net35" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2013 | ||
VisualStudioVersion = 12.0.40629.0 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.24720.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "02. General Fallback", "02. General Fallback", "{2B3D124A-AB61-411E-B2A0-AACB4BBDB224}" | ||
ProjectSection(SolutionItems) = preProject | ||
ReadMe.md = ReadMe.md | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "03. Language Fallback", "03. Language Fallback", "{331B2DC2-D515-42EB-9FD9-D2C7A3CB9658}" | ||
EndProject | ||
|
@@ -32,6 +35,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "04. Demo", "04. Demo", "{22 | |
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo.Web", "Demo.Web\Demo.Web.csproj", "{CC55891F-E4DE-4EBD-9A01-0F4498E49FCF}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".tds", ".tds", "{82477168-C91B-4DEA-BBFB-0FE78B4900CC}" | ||
ProjectSection(SolutionItems) = preProject | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A .user file shouldn't be in the sln either. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has been corrected! |
||
TdsGlobal.config.user = TdsGlobal.config.user | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ public static bool EditEnabled | |
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This folder wasn't checked into source control and shouldn't be included in the SLN file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been corrected!