Magento 2 remove the unwanted sidebar div displaying something I don't know where come from - magento2

the image attached shows the sidebar in a category page that lists all its products with this sidebar that shows search block and compare block then this div that shows that error. I don't know how this been generated but I want to remove this error info div
additional sidebar div

Turn on path hints
Get file template
Copy template to your theme and remove your div.

Related

How to show full content of <style> element in devTools?

When I am inspecting elements there are styles applied which are generated by webpack dev server and pasted in <style> elements. But when I try to inspect how those styles look like I am getting just partial content of that element.
How could I see the whole content?
I tried to find it in "view page source", but those style elements are added dynamically so they are not present in page source.
Only option I found so far is to click on style element, so it is selected. In console, let print content to console $0.innerHTML. $0 is reference to latest marked html element in Elements tab.
Store style element as a global variable, then assign it innerHTML to a variable and show it in console. I was able to copy full 25kB contents of style tag
image to help

Validating and showing errors in custom editor

I have custom editor in my plugin with some text fields at top and a Table Viewer below. One of the fields on the top is required. If left blank I want to show a error message on top in editor and in problems view of eclipse.
Using IMarker I am able to show error in Problems view but how to highlight the same in editor for the user.
Below is the screen shot of Editor I am creating (not actual but similar to this)
Editor
The editor content is based on an XML file. The attributes present on the child node of the root are displayed in table and attributes on root node displayed in text fields above the table. It is not a multipage editor - I am not providing source view for user to edit just this UI.
The text field at top I need to validate like if left blank provide an error message and so on.
Thanks.

Remove subcategories form Vanilla Forum sidebar

I wish to display root categories in the Vanilla sidebar, however both categories and subcategories are displayed. The admin panel only gives the option of removing the sidebar all together or display root categories as headings.
I've narrowed down the PHP file responsible for this section of the sidebar it's located at: applications/vanilla/views/modules/categories.php
How would I modify this to prevent subcategories being displayed?
You can use CSS, for example if you are using the Bootstrap theme, you can do this with:
li.ClearFix.Depth2{
display:none;
}

tinyMCE - point between block elements

I am using tinyMCE in show block elements mode.
I have written custom plugin that inserts prepared html blocks (layout partials) in actual cursor position.
It's problematic to point a space between two divs.
If I have markup like that:
<div id="first"></div><div id="second"></div>
When I click beteween those divs I would land in first or second div, never between.
So I try to edit html source and result in markup whit br's:
<div id="first"></div><br/><div id="second"></div>
Now I can point between those divs, but it does not work with elements that I add dynamically via tinyMCE. If I add partial eg.
<div></div><br/>
clicking after that div is not posibble. But it's posibble when I edit source manually. Weird. Do you have any solution at this subject?
Tinymce takes care that the user is not able to click between div or p tags.
The reason for this is easy: If a user could click inbetween and he would type in a letter - then there would be another div or p created containing that letter. This is not the way rtes are designed to work. If you want to insert somthing between two divs you will need to use a special button or own plugin to take care of this, but placing the cursor where you won't it to be by hand won't work.

Use the sitemap content element to load content of the referenced pages

I use the sitemap content element so that the editor can explicitly reference to individual pages in my page tree. Of course those pages do contain content elements (Textpic, Media, all the good stuff...) in their "normal" section. I need advice on how to modify the sitemap content element that it will output the content of the referenced pages.
I know there is already a plugin called "kb_sitemap" which basicaley does this job... but it does not handle the output of images or media (flash-, quicktime movies..) elements which is absolute necessary. The rendering relevant stuff is handled by Css Styled Content (CSC) which is necassary for me because it renders the media content element.
Do you use templavoila ?
Ok, go to page properties -> General tab (bottom part of the tab) and then you'll find all containers that possibly contain CEs, click to the lil folder icon and you may select content elements from any other page.
EDIT: added screenshot, page properties...
Note, showcase, maincontent, right content are just my names for my TV elements, could of course be name differently.