PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 19, 2022

[FIXED] How to place content type settings in Orchard CMS Admin?

 October 19, 2022     admin, orchardcms, settings     No comments   

Issue

I recently updated Orchard to 1.10.1 and there seems to be a placement issue with some content type part settings:

  • Orchard 1.9

Drop down with Html above Html flavor settings

  • Orchard 1.10.1

Drop down with Html below Html flavor settings

How can i adjust the placement in a way that my settings (Html flavor settings) will be displayed below the drop down again?

I tried to use shape tracing to create a Placement.info file but to no avail.


Solution

I had to find another way to enforce the ordering as the solution of mdameer does not work and i came up with a simple jQuery solution

$(document).ready(function () {
    // get fieldset with my settings
    var $HtmlFlavorSettings = $(".html-flavor-settings");

    // get flavour drop down
    var $flavorSelection = $HtmlFlavorSettings.closest("form").find("[name$=\"BodyTypePartSettings.Flavor\"]");

    if ($flavorSelection.length > 0)
    {
        // place fieldset with my settings after fieldset with flavour drop down
        $HtmlFlavorSettings.insertAfter($flavorSelection.closest("fieldset"));
    }
});


Answered By - ViRuSTriNiTy
Answer Checked By - Gilberto Lyons (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing