mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix default/core recipes, and comment in LayerHintHandler.cs
--HG-- branch : autoroute
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
</Recipe>
|
</Recipe>
|
||||||
|
|
||||||
<Feature disable="Feeds, Containers"
|
<Feature disable="Feeds, Containers"
|
||||||
enable="Orchard.jQuery" />
|
enable="Orchard.jQuery,Orchard.Alias,Orchard.Autoroute" />
|
||||||
|
|
||||||
<Metadata>
|
<Metadata>
|
||||||
<Types>
|
<Types>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<Version>1.0</Version>
|
<Version>1.0</Version>
|
||||||
</Recipe>
|
</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.Lists,TinyMce,Orchard.Media,Orchard.MediaPicker,Orchard.PublishLater,
|
||||||
Orchard.jQuery,Orchard.Widgets,Orchard.Widgets.PageLayerHinting,Orchard.ContentTypes,
|
Orchard.jQuery,Orchard.Widgets,Orchard.Widgets.PageLayerHinting,Orchard.ContentTypes,
|
||||||
Orchard.Scripting,Orchard.Scripting.Lightweight,
|
Orchard.Scripting,Orchard.Scripting.Lightweight,
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ namespace Orchard.Widgets.Handlers {
|
|||||||
public void Routed(IContent content, string path, ICollection<Tuple<string, RouteValueDictionary>> aliases) {
|
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
|
// 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) 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
|
// 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
|
||||||
// has *changed*.
|
// that and edit the existing layer rule rather than create a new one.
|
||||||
if (!(content.ContentItem.ContentType == "Page"))
|
if (!(content.ContentItem.ContentType == "Page"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user