Styling the Sitecore Content Tree with CSS

It’s Saturday morning and in between doing some light, honey-do-list items, I ran across a tweet from Dan Solovay, illustrating a relatively obscure (and would venture to guess, very lightly used) option in Sitecore.  If used properly, it could provide some benefit to content authors.

dan-tweet

Select a node in your content tree, click the Configure Tab, then click the Tree Node Style button in Appearance.

tree-node-style

This will bring up the Tree Node Style dialog where you can start adding CSS styles.

Home-style

Here’s the result:

tree

You can also set these in __Standard Values of the template so that new items created with this template share this style.

standard-values

Just as you can set the Icon on any give node or template to give it some distinction or additional meaning, you can also set the style of the node itself using CSS.

Think of how you have your content tree organized…  Maybe you have a node of Blog posts or a node containing Products.  Using the Tree Node Style feature, you have an opportunity to make the content tree more meaningful to content authors.

This is just a simple example, so use your imagination!  Just don’t get carried away…  🙂

bad

Happy Sitecore Trails, my friends!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: