예제 #1
0
		/// <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 ;
		}
예제 #2
0
파일: ListModel.cs 프로젝트: NJepop/Piranha
        /// <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 ;
        }