Ya know that awesome new interface we get in Office 365 called Modern Lists? Ya know how that’s not editable, or customizable, or extensible? Well, ya know it right! It’s not.
Above is a typical modern list, in all of it’s glory. Pretty right? But I want to add some of my own code to this and do some cool customizations. Currently, that’s only reserved for the classic list view:
I just threw up a little in my mouth.
What if we took the classic view, and persuaded it to be modern, but keep the beauty of customizations? It’s just some good ‘ole CSS, and yes I’ll share.
Quick steps on what to do:
- Download this little CSS file (click here for project on github).
- Upload the CSS file to SharePoint somewhere, like your Site Assets library
- Create a quick HTML file with just a link to the CSS file, i.e. <link rel=”stylesheet” href=”/SiteAssets/classic_modern.min.css”></link>.
- Upload the HTML file to SharePoint
- In the library where you uploaded the files, right click on the HTML file, Get Link, then select Restricted Link, and copy that URL
- Navigate to your list.
- Ensure it’s in Classic mode, and will stay that way. Go to List Settings, then Advanced settings. Scroll all the way down to List Experience and select Classic experience.
- Navigate back to your list and create a new item.
- Use the cog in the top right, and select Edit page.
- Add a Content Editor Web Part and set the Content Link to the URL of your HTML file.
- Save it all and reload the page, BLAMO
The flow and feel of the classic form is a lot more like the modern form, but ’tis classic.
- Terrifyingly enough, the CSS for the modern lists are on the pages themselves, not in a CSS file I can reference. So there was a lot of copy/pasting of CSS from a modern list to this CSS file.
- Your classic list form will have the full ribbon, this CSS is primarily focused on the form interface for users.
- This will not do anything on the list view pages, I haven’t bothered styling those yet.
- If you wanted to, you could put this CSS into a global CSS file so all classic lists will have similar interfaces.
- This CSS is not all inclusive, it should get you most of the way there. If you do add to it, please feel free to share on the github project, or send me the changes.
Thanks, and ’til next time Happy SharePointing!
The title is misleading. You are NOT customizing Modern list forms. You’re not even working with a Modern list.
LOL that’s true…
Works well, thank you
I think your blog on SharePoint 2013 Calendar Overlays was awesome. I am wondering if its possible to show the category fields from a particular calendar that is part of the combined calendar but it has its own color coded – category fields. So, when I select the calendar itself, I can see the overlay categories and their individual colors; but when I view the calendar from the main base calendar with all the overlay calendars – the categories don’t appear. Is it a way to fix that? So, in short, I have 4 calendars rolling up into a combined calendar – one of these calendars has overlay categories (saved as views) but when I look at the combined calendar I don’t see the categories but I would like too….but when I am on the actual calendar that has the category overlays they show up just as they should.
I hope this isn’t as clear as mud.
Also, I just started following you and subscribed to your blog post today – but I need an expert opinion and that is the reason why I am trying to reach you this way.
Hi Kim, Sorry I’m not following entirely here. Could you email me, david.lozzi at slalom.com, with some more info and maybe screenshots? Thanks,
I can’t seem to get this to work for a Sharepoint online site which uses a theme :(
Oooo…. haven’t tried a themed site yet… I’ll take a look.