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

2

6

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?

Patentee answered 13/10, 2013 at 11:9 Comment(2)
Shape tracing doesn't work in the admin section, what problem are you having with your placement?Voter
Yes Indeed. Actually my problem is that after I configured the placement files, the content didn't appeared, I wanted to debug the shape placement to figure out what I had done wrong.Patentee
C
5

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;

Cistaceous answered 9/10, 2014 at 21:4 Comment(2)
Did not work for me. I cannot see the small toolbar for the shape tracing.Finalism
Apply this also in the TemplatesFilter.cs and it works! very handy for admin alternates :)Clinton
C
1

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.

Chemism answered 31/10, 2013 at 17:9 Comment(1)
I'm not asking about "How to do the placement". My question is about how to debug the placement.Patentee

© 2022 - 2024 — McMap. All rights reserved.