Wednesday 8 February 2012

How to change the sort order in the editor tree

One of the questions I've been asked by a couple of clients now is whether there is a way to sort the items that appear in the editor tree.

I've recently been asked about one of the sites which is used to advertise cars. In the CMS there is a page called "a list of cars for sale" and underneath that we create "a car for sale". Rather than creating each new car at the bottom of the list, they want to be able to group the cars around registration date. The reason for this is to make it much easier to maintain. If you have 50 cars in a list, it's not easy to manage.

Forgive me that I'm not able to post the actual full code, but I'll do my best to point you in the right direction. It turns out the solution is quite simple. In the "a list of cars for sale" page, you can override the Children property like so:


        public override System.Collections.Generic.IList<ContentItem> Children
        {
            get
            {
                // for each of your children, cast it to a CarForSalePage and sort them with LINQ
                // then return the list cast back to a list of content items
            }
        }

Using this method you really have a powerful tool at your disposal for cutomising the editor. If.. (if!) I ever get time I'd like to fork the code and look at being able to customise this in the admin tool.

Hope this helps!

149 comments:

  1. lots of cool stuff, thanks for doing this blog, am looking into using n2, webforms

    ReplyDelete
  2. Cheers Jason, glad you are enjoying them!

    ReplyDelete
  3. Hi I need to add javascripts is there a way to do i am searching them

    ReplyDelete
  4. hi did you find a way to fix the issue with the visual editor and the masterpages?

    ReplyDelete
    Replies
    1. Ruby on Rails (RoR) Development Company. Performance, Cost, Scalability, Support, and Complexity Developing powerful, high performance application,

      Delete
  5. Hi Anonymous and Paris, can you give some more details on what you are looking for and I will try to help!

    ReplyDelete
  6. A CMS makes it easier for people to create, edit and publish content on a website. Website publishing has required significant technical skills (HTML, programming).
    Website Design Companies | Web Design Companies Bangalore

    ReplyDelete
  7. I thing this is the programming information of website and application developers to change the sort order in the editor tree.
    Web Design Company India | Web Designing Company India

    ReplyDelete
  8. Thanks so much for this helpful tips come returning for additional interesting information…Keep it up
    website design company bangalore | web designing companies bangalore

    ReplyDelete
    Replies
    1. UPSC Exam: Free IAS Preparation with best study material for IAS and more to aid IAS Aspirants in UPSC Civil Service Exam Preparation.

      Delete
  9. Excellent Information..It is easier for people to create, edit and publish content on a website.
    Hire Website design Company

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Web development is the great concept which is explained only by experts only..You have done a great work by posting this..We hope you will keep posting web development concepts..Thank you for this post..
    Engineering Colleges In Chennai , Nautical Science Colleges In Chennai

    ReplyDelete
  12. I am glad to read this post, its an interesting one. I am always searching for quality posts and articles and this is what I found here,I hope you will be adding more in future. Thanks.ITFOFINDIA,ITF OF INDIA

    ReplyDelete
  13. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog
    Yasir Jamal

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. This comment has been removed by the author.

    ReplyDelete
  16. WOW, Nice Information. Thanks for sharing this Blog.

    ReplyDelete


  17. If you Want to Win reward by rue21 Survey feedback ? Or Do you
    want to complete rue21 Customer satisfaction survey or
    rue21 Guest Feedback? Here in this post I have given step
    by step guide for complete rue21 customer satisfaction survey
    and rue21 guest feedback at www.rue21survey.com

    ReplyDelete
  18. The most authentic post ever i read about this topic so far i must say you have cleared all the required info thank for sharing, keep up the good work and find best e-ticket, visa and travel insurance services at https://malikexpress.com/

    ReplyDelete
  19. Thanks for sharing this article with us. I can see that this post has the most favourable information. Let me follow you on the social networks given so that I don't miss out any information as we are the MadToKnow . Nevertheless, I m not pretty sure as to how many traffic you are getting as of now for . But, by writing these kind of articles, you will definately start getting from people like Knowledge Center.

    ReplyDelete
  20. First this is a really Creative and Unique Article. Well, the main reason of me sharing my post here is that, We being the Digital Marketing Agencies In India are open for Partnerships with Mobile App Development, Website Development and Graphics related company !

    Get in touch with the Digital Marketing Agency In India for more information

    ReplyDelete
  21. First this is a really Creative and Unique Article. Well, the main reason of me sharing my post here is that, We being the Digital Marketing Agencies In India are open for Partnerships with Mobile App Development, Website Development and Graphics related company !

    Get in touch with the Digital Marketing Agency In India for more information

    ReplyDelete
  22. Informative one, every web developers in Bangalore Should aware about sort order in editor tree.

    ReplyDelete
  23. Trialix Male Enhancement CBD stands for one in all greater than eighty five compounds, known as cannabinoids, that are extracted from the resin glands on cannabis (marijuana) buds and flowers. If you're after a CBD oil that delivers zero THC, Medterra is the best way to go. Whereas most CBD oils include solely hint amounts of THC, even that small quantity can retailer up in your system and ultimately cause a failed drug test. These merchandise differ from the commonest, like sublingual oils and topical lotions, to the less frequent (think CBD lattes). THC (or tetrahydrocannabinol) is the only cannabinoid liable for the excessive that people get from marijuana. Normally high temperatures and fevers set off it. The results of the second study showed that CBD oil decreased seizures significantly. Lazarus Naturals goals to control all the course of of manufacturing CBD oil-based products, including rising their very own hemp. If you take CBD oil, you'll be able to decrease power pain. Hemp and marijuana come from the same plant, Hashish sativa, but the two are very different. In a study of 47 individuals with a number of sclerosis, these treated with Sativex for one month experienced a significant enchancment in pain, walking and muscle spasms, compared to the placebo group ( 7 ).
    https://www.smore.com/czbha-trialix-male-enhancement-canada

    ReplyDelete
  24. Very nice write-up. I absolutely appreciate this website. Thanks!
    Kroger Feedback
    FMCDealer
    TellSubway
    DQFanSurvey from these surveys you can win cash prize $5000 or Coupon codes within minutes. Give feedback with honestly

    ReplyDelete
  25. You ought to be a part of a contest for one of the finest sites on the internet. I will recommend this web site!
    https://www.creditscardsadviser.com/
    https://www.creditscardsbenefits.com/

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. Oh thanks for the wonderful code. It’s really a helpful blog. That’s more than sufficient as you have given hint through this code. We will develop it further.

    ReplyDelete
  28. thanks for sharing the information
    The post is really good, we will use above mentioned strategy in our SEO company in Bangalore.

    ReplyDelete
  29. Hey Thanks for sharing this valuable information with us. I will come back to your site and keep sharing this information with us.
    Captions
    captions
    Captions
    captions

    ReplyDelete
  30. Amazing website. Great information provided. Learned a lot. Thank you
    https://platinumoffersonline.com/

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
  32. Hi There, love your site layout and especially the way you wrote everything. I must say that you keep posting this type of information so that we may see the latest news
    Top law firm in Lahore

    ReplyDelete
  33. It’s hard to come by experienced people about this subject, but you seem like you know what you’re talking about! Thanks
    https://myinstantofferonline.com/
    https://www.peryourhealthonline.com/
    https://www.myindigocardoffer.com/

    ReplyDelete
  34. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hairclinic.pk

    ReplyDelete
  35. I loved the post, keep posting interesting posts. I will be a regular reader...

    http://hnl.com.pk

    ReplyDelete
  36. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hairclinic.pk

    ReplyDelete
  37. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hair transplant pakistan

    ReplyDelete
  38. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hairclinic.pk

    ReplyDelete
  39. http://n2cmstutorial.blogspot.com/2012/02/how-to-change-sort-order-in-editor-tree.html

    ReplyDelete
  40. """I loved the post, keep posting interesting posts. I will be a regular reader...

    https://www.hairclinic.pk/

    ReplyDelete
  41. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hair transplant in pakistan

    ReplyDelete
  42. "I loved the post, keep posting interesting posts. I will be a regular reader...

    Rent a car from Islamabad to Murree

    ReplyDelete

  43. شراء اثاث مستعمل بالمدينة المنورة
    من خلال التواصل مع شركة شراء اثاث مستعمل بالمدينة المنورة يكون بإمكانكَ الاستفادة الكبيرة من الأثاث المستعمل كبيرة من الأثاث المستعمل الذي يقوم البعض بتغييره ويكون من الصعب التخلص منه، لذلك قد قامت شركة شراء اثاث مستعمل بالمدينة التي لا تكلفكم الكثير من المال في أمور تخزين الأثاث أو وضع الالكثير من الأثاث المستعمل المستعمل بالمنزل وبهذا تأخذ حيز كبير من المكان وتوفر لكم الشركة خدمة شراء الأثاث ولكن لا تقم الشركة بشراء الأثاث فقط بل أنها تقوم بشراء المكيفات والأجهزة الكهربائية المستعملة والمفروشات والستائر والسجاد وخلافه، فكل ما عليكم فعله هو أن تقوموا بالاتصال بشركتنا شركة شراء اثاث مستعمل بالمدينة المنورة التي تساعدكم في الحصول على أفضل الخدمات.


    ReplyDelete
  44. """I loved the post, keep posting interesting posts. I will be a regular reader...

    hair transplant pakistan

    ReplyDelete
  45. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hair transplant in pakistan

    ReplyDelete
  46. I loved the post, keep posting interesting posts. I will be a regular reader...

    Rent a car from Islamabad to Kashmir tour

    ReplyDelete
  47. "I loved the post, keep posting interesting posts. I will be a regular reader...

    Rent a car from Islamabad to Skardu

    ReplyDelete
  48. "I loved the post, keep posting interesting posts. I will be a regular reader...

    Rent a car from Islamabad to Kashgar

    ReplyDelete
  49. I loved the post, keep posting interesting posts. I will be a regular reader...

    SEO Company London

    ReplyDelete
  50. "I loved the post, keep posting interesting posts. I will be a regular reader...

    hairclinic.pk

    ReplyDelete
  51. "I loved the post, keep posting interesting posts. I will be a regular reader...

    yourcar.pk

    ReplyDelete
  52. "I loved the post, keep posting interesting posts. I will be a regular reader...

    rent a car in islamabad

    ReplyDelete
  53. "I loved the post, keep posting interesting posts. I will be a regular reader...

    rent car islamabad

    ReplyDelete
  54. "I loved the post, keep posting interesting posts. I will be a regular reader...

    rent a car islamabad without driver

    ReplyDelete
  55. "I loved the post, keep posting interesting posts. I will be a regular reader...

    https://www.seomagician.co.uk"

    ReplyDelete
  56. "I loved the post, keep posting interesting posts. I will be a regular reader...

    SeoMagician.co.uk

    ReplyDelete
  57. "I loved the post, keep posting interesting posts. I will be a regular reader...

    seomagician.co.uk

    ReplyDelete
  58. I’m really impressed with your blog article, such great & useful knowledge you mentioned here.
    Keep up the great work.

    Eye lens price in Pakistan 2019

    ReplyDelete
  59. I loved the post, keep posting interesting posts. I will be a regular reader


    https://talkwithstranger.com/

    ReplyDelete
  60. "I loved the post, keep posting interesting posts. I will be a regular reader...

    https://talkwithstranger.com/

    ReplyDelete
  61. It so good idea so i appreciate it and its a good thingstore of generators

    ReplyDelete
  62. I think it is so good thing so it is very useful forn you SEO Expert In Lahore

    ReplyDelete
  63. i really appreciate the amount of detail i have found in the article. It was very easy to understand and was to the point. new metro city

    ReplyDelete
  64. I have recently started a blog, the info you provide on this site has helped me greatly in blogging. Thanks for all of your work and time affiliate marketing usa

    ReplyDelete
  65. Hi There, love your site layout and especially the way you wrote everything. I must say that you keep posting this type of information so that we may see the latest news Gap coupon code

    ReplyDelete
  66. Great Article, i was really confused about this but because of the information provided i can easily make a decision now. new metro city

    ReplyDelete
  67. Nice Post! Thanks for sharing such an amazing article, really informative,it helps me a lot. For Latest Hindi News and Updates please visit: TV9 Bharatvarsh Media News

    ReplyDelete

  68. This is a topic which is near to my heart... Cheers! Where are your contact details though?
    Social Media Marketing Agency in Pakistan
    Sportwears
    Organic Brand

    ReplyDelete
  69. Thanks your blog is very useful for me its help me a lot keep posting this kind of blogs Magnetic bluetooth earbuds

    ReplyDelete
  70. Thanks for sharing this valubale information with us Keep Blogging. new metro city

    ReplyDelete
  71. Hi There, love your site layout and especially the way you wrote everything. I must say that you keep posting this type of information so that we may see the latest newsinfluencer marketing agency

    ReplyDelete
  72. This blog is useful as well as informative. Keep sharing such blogs I really like your posts bluetooth wireless headphones

    ReplyDelete
  73. Your article was very informative and helpful. Thanks for sharing this valuable information with us Keep Blogging.
    scissor repair parts
    Scissors Repair Kit

    ReplyDelete
  74. Appreciating the hard work you put into your site and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed materialSls limo service

    ReplyDelete
  75. I have recently started a blog, the info you provide on this site has helped me greatly in blogging. Thanks for all of your work and timeRoofing Contractor / Contractors Brooklyn

    ReplyDelete
  76. Are you taking part in the Burger survey for amazing offers? You have to follow some of the rules and requirements to complete the survey procedure.
    burger king survey

    ReplyDelete
  77. Are you taking part in the Burger survey for amazing offers? You have to follow some of the rules and requirements to complete the survey procedure.burger king survey

    ReplyDelete
  78. I have recently started a blog, the info you provide on this site has helped me greatly in blogging. Thanks for all of your work and time Top law firm in Lahore

    ReplyDelete
  79. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material Gravel Grids

    ReplyDelete
  80. Hey, Great tips sir. Your blog post is really important and useful to growth a websites. Thanks for sharing amazing tips.

    Website Development Company Jaipur

    ReplyDelete
  81. I have read your article from start to end and it`s really this goes far beyond the commenting. The thoughts while reading the article is amazing. Thanks for sharing this blog with us, please keep posting.

    Website Development Company Jaipur

    ReplyDelete
  82. Thanks for sharing this information with us and it was a nice blog.
    Best Digital Marketing Agency in Hyderabad. Envizon studio offers Digital Marketing services to companies of all sizes. Based out to Hyderabad, Envizon studio is one of the Top Digital Marketing Agencies and has helped startups and established companies go online and achieve their marketing goals through digital marketing.
    Digital Marketing Agency in Hyderabad
    SEO Services in Hyderabad
    Digital Marketing Company in Hyderabad
    Digital marketing Services in Hyderabad

    ReplyDelete
  83. Great points there, Translating the thank you, Hilarious indeed
    DVDFab Crack

    ReplyDelete
  84. Thanks for posting this information it really useful for everyone.

    Java Training in Chennai

    Java Course in Chennai

    ReplyDelete
  85. <a href="https://onlinesurvey.onl/www-telltotalwine-com/''>www-telltotalwine-com</a>

    ReplyDelete
  86. It is amazing and wonderful to visit your Blog.Thanks for sharing this information,this is useful to us. Keep posting!latest telugu news

    ReplyDelete
  87. most useful article thanks for .
    https://www.apktami.com/2021/01/hack-app-data-pro-apk-download-latest.html

    ReplyDelete
  88. thanks for sharing more informative article
    https://www.apktami.com/2021/01/Han%20Esports%20Apk.html

    ReplyDelete
  89. Hi Thank you for sharing this wonderful article. You describe all the points so well.
    Greetings from ATS Consultantx! We provide the E Filing Tax Portal under the supervision of professional consultants. Which allow to salary individuals or others to register and file their tax returns with an easy and affordable slant. The purpose of this affords to help taxpayers in order to mitigate their fear about FBR and empower them as responsible citizens of Pakistan.
    E Filing Tax Portal
    Salary Tax Calculator
    Business Tax Calculator
    Rental Tax Calculator
    Register NTN
    File My Return
    Benefits for filer
    ATS Services

    ReplyDelete
  90. Spring Assisted Knives - best knives made from stainless steel with damascus pattern on it, these spring assisted pocket knives have removable pocket clip and liner lock mechanism keeps the blades locked in place when open
    https://bladesnow.com/collections/spring-assisted-knives

    ReplyDelete
  91. After I at first remarked I appear to have tapped on the - Notify me when new remarks are added-checkbox and now every time a remark is added I get 4 messages with precisely the same remark. There must be a simple strategy you can eliminate me from that help? Credit! best interiors

    ReplyDelete
  92. """Why Hamdan car rental service?
    rent a car islamabad
    Hamdan car rental service is providing the best service all over Pakistan Karachi Lahore Islamabad Multan Faisalabad Peshawar Quetta Sukkur Sahiwal Abbottabad Mansehra Haripur Murree Naran Kagan Hunza Gilgit Balochistan Chicha Watani Hyderabad China Border Kashmir Malakand And More Areas. Hamdan Rent Car is available with the largest flat service in Pakistan. Rent a car in islamabad"""

    ReplyDelete
  93. If you are looking for Rent a Car in Islamabad or Rent a Car Rawalpindi then you are on right place.
    Pakistan Qureshi Tours offer all types of cars for rent


    Rent A Car Islamabad

    ReplyDelete
  94. The team at Digissofts technologies has over 10+ years of experience, combined, in Web hosting, web design & Web Development and SEO service

    provider in Bangalore

    best Seo Expert in bangalore
    best web hosting company in bangalore
    best website designers in Bangalore
    best web development company in bangalore
    Best SEO Services in Bangalore

    ReplyDelete
  95. Very good article thnx for sharing energetic information. i really appreciate u.U work more to promte website.
    keep it,blog Upload on regularly. I read the blog on a daily base.
    "Get the best home tutor in Karachi At your Doorstep. Best Tutor Academy in Karachi ForHome Tutors All Classes and Subject

    ReplyDelete
  96. Global Light and Power LED Lighting | offers the best collection of outdoor lights with beautiful designs that gives new decoration to your home and garden, visit GLP Retail
    https://glpretail.com/collections/outdoor-lighting

    ReplyDelete
  97. It is very nice website with all proper information and also get the best eCommerce web design Dubai

    ReplyDelete
  98. Thank you for the best blog and i bookmarked this blog and check this best Website Design Dubai

    ReplyDelete
  99. We are passionate about delivering excellence in the service we provide and are committed to delivering a design and web development service that meets the needs of every client we have the pleasure of working with. Visit: ajay saini .

    ReplyDelete
  100. मुझे आपका लेख बहुत अच्छा लगा मैं रोज़ आपका ब्लॉग पढ़ना है। आप बहुत अच्छा काम करे हो..

    ReplyDelete
  101. it is so informative keep posting interesting posts
    curtains in dubai

    ReplyDelete
  102. Great information shared and that too in a very detailed manner Buy chocolate truffles Jeddah

    ReplyDelete
  103. I got many helpful information for us.thank you fit out companies uae

    ReplyDelete
  104. Interesting positions discussed regarding this topic. Some viewpoints made some really good cases to consider further. Always nice to read takes that challenge conventional ways of thinking too. clear tarpaulin

    ReplyDelete