Getting the content container going. Still need to implement ordering and pagination.

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-10 16:35:17 -08:00
parent ca74da5ea5
commit b4bfd909e5
15 changed files with 160 additions and 88 deletions

View File

@@ -7,6 +7,7 @@ using Orchard.Core.Common.Models;
using Orchard.Core.Routable.Models;
using Orchard.DisplayManagement;
using Orchard.Themes;
using Orchard.UI.Navigation;
namespace Orchard.Core.Containers.Controllers {
public class ItemController : Controller {
@@ -22,7 +23,7 @@ namespace Orchard.Core.Containers.Controllers {
dynamic New { get; set; }
[Themed]
public ActionResult Display(string path, int? page) {
public ActionResult Display(string path, Pager pager) {
var matchedPath = _containersPathConstraint.FindPath(path);
if (string.IsNullOrEmpty(matchedPath)) {
throw new ApplicationException("404 - should not have passed path constraint");