Make Sitecore Look Good Again. Tip #3021: Add CSS to the content tree items

Let’s make Sitecore beautiful. Here is a very little known thing that I personally haven’t seen getting too much attention but is a neat trick to show off your skillz.

Select the Item. Go to the configure tab. Then “Tree node style”. Enter all the CSS styles you know and want to show.

Screen Shot 2020-03-15 at 5.48.49 PM

Be careful: A bit of wrong, weird or malformed CSS could break this. and you will the red screen of death next time you try to go to the Tree Node Style window.

To clean that up I usually spin up http://<your-sitecore>/sitecore/admin/dbbrowser.aspx

and go to the item’s style value and clean that up.

Screen Shot 2020-03-15 at 6.13.47 PM

 

~ Enjoy the colors around you. ~

Loading data into Sitecore with API calls

If you’re doing any APIs with Sitecore and use them to load data if you leave a tab for too long in chrome, the next time you click on it it has the chance of refreshing. Thus causing a reload of the data. Under “chrome://flags” you can disable the automatic tab discarding feature.

image (1)

 

 

 

~ Travel ~

Sitecore/shell or /login showing nolayout or notfound

This was a mind boggler.

One moment I would be working on the Sitecore backend. go for lunch. come back to a broken site.  desktop, content editor, launchpad all will be redirecting to nolayout or notfound page. sometimes the user would be anonymous. Sitecore/admin would still be accessible.

not to fear. Found out this was Chrome only bug.

Go to dev tools > Application > Clear Storage > Clear Site Data

Screen Shot 2018-01-25 at 4.25.03 PM

and you should start having a better day.