Fix default/core recipes, and comment in LayerHintHandler.cs

--HG--
branch : autoroute
This commit is contained in:
randompete
2012-01-18 07:59:28 +00:00
parent 3835b3db88
commit 9ebfc38e2e
3 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
</Recipe>
<Feature disable="Feeds, Containers"
enable="Orchard.jQuery" />
enable="Orchard.jQuery,Orchard.Alias,Orchard.Autoroute" />
<Metadata>
<Types>

View File

@@ -9,7 +9,7 @@
<Version>1.0</Version>
</Recipe>
<Feature enable="Orchard.Blogs,Orchard.Comments,Orchard.Tags,
<Feature enable="Orchard.Blogs,Orchard.Comments,Orchard.Tags,Orchard.Alias,Orchard.Autoroute,
Orchard.Lists,TinyMce,Orchard.Media,Orchard.MediaPicker,Orchard.PublishLater,
Orchard.jQuery,Orchard.Widgets,Orchard.Widgets.PageLayerHinting,Orchard.ContentTypes,
Orchard.Scripting,Orchard.Scripting.Lightweight,

View File

@@ -30,8 +30,8 @@ namespace Orchard.Widgets.Handlers {
public void Routed(IContent content, string path, ICollection<Tuple<string, RouteValueDictionary>> aliases) {
// Only going to help in creating a layer if the content is a page
// TODO: (PH) Any reason not to enable the hint for *all* routed content?
// TODO: (PH:Autoroute) Previously this only ran when the item was first published. Now ideally we want to run this any time the route
// has *changed*.
// TODO: (PH:Autoroute) Previously this only ran when the item was first published. Now it's running any time item is published. We want to catch
// that and edit the existing layer rule rather than create a new one.
if (!(content.ContentItem.ContentType == "Page"))
return;