-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EditContainerClass does not seem to work with EPiBootstrapArea #23
Comments
Looks like a bug. Are you on EPi v10? |
No, we're currently on the last version of the 9 series of EPi. Does EPiBootstapArea support EPi v10 now? Thanks for your fast reply on this issue. |
I'm pretty close to release it. Will take a look altogether. |
I'm not quite sure that EPiServer renders things correctly. Here is repro:
I know that it should be working. What I'm missing? I want to understand where this is working in clean Alloy before jumping to fixing the bug. |
The same issue is in 9x versions |
Maybe I got it wrong and it's an episerver bug. I'll check it out in my project now |
Seems like an EPi bug, can reproduce bug in CMS 9.12.2 . I'll create an EPi support ticket. |
Which version you were using that supported this feature? |
I haven't used it yet. I found the feature documented in these blog posts:
Related EPi doc: http://world.episerver.com/documentation/Class-library/?documentId=cms/7/a9b90d0a-751c-18ec-d338-d0a5a4c56489 |
From epi support: "I have reported a bug on this issue in our tracking system with id CMS-5125. You should be able to track the status of the bug through our buglist on Episerver world once it goes through triage, accepted as bug and become active." |
Ok, let's wait for triage. |
Any feedback on this? |
No, I can't seem to find CMS-5125 in the official buglist. I'll contact I'll give u feedback when I have it. On Fri, Nov 18, 2016 at 11:03 PM, Wałdis Iljuczonok <
|
I got the following answer from EPi support: The bug CMS-5125 has been closed as "Not a problem" as EditContainerClass was renamed to CssClass when rendering of content areas was rewritten as part of CMS 7.5. |
We're having problems with specifying a class which should only be displayed on the container if in edit mode.
By default EPiServer offers the property EditContainerClass for this purpose:
`
@Html.PropertyFor(x => x.MainContentArea, new { EditContainerClass ="editor-overflow-hidden" })
However, it seems to me that this property is swallowed by EPiBootstrapArea. Workaround is to have an if statement in the view which checks if in edit mode, if so use CssClass. CssClass seems to flow through EPiBootstrapArea correctly.
The text was updated successfully, but these errors were encountered: