mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
- Slug generation (for Blog, BlogPost and Page) reworked so a page can set its own slug rules and all content types get better AJAX-ified slug generation now that it is (and can be) content type aware (except for BlogPost, it needs some context about its parent so it can gen a unique slug for a post within a given blog)
- Page edit actions changed over to use id instead of slug (others should follow suit since slug uniqueness is only guaranteed among published content items...where applicable, there is no notion of a "published" blog) --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045722
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Orchard.Core.Common.Records;
|
||||
using Orchard.ContentManagement;
|
||||
|
||||
@@ -9,7 +8,6 @@ namespace Orchard.Core.Common.Models {
|
||||
set { Record.Title = value; }
|
||||
}
|
||||
|
||||
[Required]
|
||||
public string Slug {
|
||||
get { return Record.Slug; }
|
||||
set { Record.Slug = value; }
|
||||
|
Reference in New Issue
Block a user