- 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:
skewed
2010-01-20 01:19:16 +00:00
parent 28cb6715af
commit 03d7d076f2
19 changed files with 332 additions and 112 deletions

View File

@@ -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; }