mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
Fix default/core recipes, and comment in LayerHintHandler.cs
--HG-- branch : autoroute
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</Recipe>
|
||||
|
||||
<Feature disable="Feeds, Containers"
|
||||
enable="Orchard.jQuery" />
|
||||
enable="Orchard.jQuery,Orchard.Alias,Orchard.Autoroute" />
|
||||
|
||||
<Metadata>
|
||||
<Types>
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user