Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I debug the shape placement in the Orchard CMS admin screens

I had arranged shapes in the placement file, and they were not placed correctly. I want to debug the shapes placement, I enabled the shape tracing module, but the shape tracing tools is not showing in the admin screens.

I wonder how can I show the shape tracing bar in the admin screens, or how can I debug the shape placement in the admin screens?

like image 445
Ahmed Ahmed Avatar asked Oct 13 '13 11:10

Ahmed Ahmed


2 Answers

If you are interested in using Shape Tracer on admin pages, open up the ShapeTracingFactory.cs file in Orchard.DesignerTools module, and comment out the following line in the IsActivable method:

if (AdminFilter.IsApplied(new RequestContext(_workContext.HttpContext, new RouteData()))) return false;

like image 173
Justin Greywolf Avatar answered Oct 16 '22 10:10

Justin Greywolf


Yeap, you can change the placement in the Admin Area. Just go to "Content Definitions", look for the "Content Type", edit it and there is a placement button top right "Edit Placement". That will work for the Editors, if what you are looking for is the placements within the lists; You must do that from the placement file itself. You can match the "Display Type", SummaryAdmin for example to hide elements. That is if those are you Customs types or Common Types. If what you are trying to "place" comes from another module, you must change the placement in that very module.

like image 1
ErMasca Avatar answered Oct 16 '22 08:10

ErMasca