/// <summary> /// Gets all available content. /// </summary> /// <returns>A list of content records</returns> public static ListModel Get() { ListModel lm = new ListModel() ; lm.Content = GetStructure() ; lm.Content.AddRange(Piranha.Models.Content.Get("content_draft = 1 AND content_folder = 0 AND content_parent_id IS NULL", new Params() { OrderBy = "COALESCE(content_name, content_filename) ASC" })) ; return lm ; }
/// <summary> /// Gets all available content. /// </summary> /// <returns>A list of content records</returns> public static ListModel Get() { ListModel lm = new ListModel() ; lm.Content = Piranha.Models.Content.Get(new Params() { OrderBy = "content_filename ASC" }); return lm ; }