For anyone that’s attended my sessions (SharePoint Saturday, SPFest, etc…) for the last few months I’ve given you a heads up that my blog has been in flux for a little while now as it needed to be moved. Well, I think it’s finally set now.
I had an inquiry this week regarding whether or not CSR could be used within a SharePoint list view to display links directly to an item’s attachments. It took a bit of tweaking code around a bit, but Raymond Mitchell (@iwkid) and I were able to get it working.
Background: SharePoint lists may allow for attachments to list items. SharePoint also has a default column that can be used in a view for displaying whether or not an item *has* one or more attachments. (Is that Clippy in disguise?)
A user experience (UX) stumbling block however is that you have to open up an item view in order to see the list of items and links to them. If you’re familiar with SharePoint, not a huge UX issue, but still somewhat irritating compared to just seeing the list of items in the view directly. If you’re *not* SharePoint-savvy, then you might not know at all whether an attachment exists or how to see attachments.
We’re aiming for something like this:
Instructions for use:
- If you don’t already have one, create a ‘scripts’ document library on the Office365 / SharePoint site you’ll be using the CSR file on.
- jQuery is required for this CSR to work. If you don’t have jQuery already, upload it to the same scripts library. (See this post for more information on using jQuery with CSR)
- Add the Script Editor web part to your page or use the ‘Embed Code’ option to add a reference to jQuery.
- Your list: If you don’t have a ‘spare’ text column you can use to override in a view, create a new text column (ex. ‘ViewAttach’).
- Create a view for your list that includes your new column. You can still use all the same sorting, filtering, and other other view configuration settings for this view.
If everything is in place, attachments in your list should now be listed in the column you identified. (If not, check the common troubleshooting items for CSR… hmm, that sounds like another post…)
- The (internal) name of field being overridden. In the example code below we’re using the ‘Body’ column (which is the internal name for the ‘Description’ field) of a task list. You can override any text field and/or create your own.
- The siteURL variable. — See example in the CSR file itself
- The listName variable. — The list that includes the attachments you’re displaying links to (example in file)
- The attachPath variable. — Link to where attachments are stored (example in file)
Thanks, Notes, and References:
- Thanks to Raymond Mitchell (@iwkid) for his help in getting the code to work.
- Using jQuery for CSR
- JS Link – Hello World
Please let me know how this works for you!
Now, plenty of folks play with a variety of mods. I’ve been a bit of a stickler though and haven’t installed any for my kids. Partially because I’m a bit of a purist. Partly because I didn’t want the additional hassle of supporting them and don’t want to wait to update Minecraft itself when updates roll out. (There are usually some gaps in time between when a new game version rolls out and when mods are rolled out that support the new game version) Besides, my kids are already having a blast with the basic Minecraft game and are accepting of these limitations.
Aside from Minecraft, I’m always looking for kid-friendly ways to introduce and encourage basic coding skills, computational though processes, etc. I’m not trying to steer them towards a career, per se, but I want to at least introduce to concepts because I believe they’ll be invaluable as they grow up in this crazy world of ours.
So, with that background, when I heard about this mod my interest was peaked (as was theirs): http://www.computercraftedu.com/
Enough of my rambling. On to the steps and notes.
So far, we have it installed so they can experiment with it locally. I’d like to get it running on a server as well to see what craziness happens. These are the steps we used to install it locally. Hopefully this can help some folks get it running faster than I did initially. It was my first experience getting some of these things running.
- First of all, the ComputerCraftEdu site does a good job of getting you started – start there.
- This particular mod only works with an older version of Minecraft. As of July 23, 2015 ComputerCraftEdu is version 1.7.10 while the current version of Minecraft is 1.8.7
No need to worry, we can work with this just fine. There are some warnings about the potential for breaking or corrupting a world (file) by opening it with the mismatched version – there are ways to help prevent this – described in the steps below.
- Minecraft Forge – it’s a program used to manage and load mods. ComputerCraftEdu requires it to load their mod.
- WARNING: When visiting and downloading Forge BEWARE OF AD LINKS. When you click on the download links you’ll see a full page add that you’ll be tempted to click and you’ll get some unknown, untrusted software. STAY AWAY. Look at the header and click the SKIP button to get the download you want. (image below)
- Download the ComputerCraftEdu mod (I’m not going to link directly to the file – go to their page and make sure you’re getting the latest version).
Note: You might get a “hey, this file could be dangerous” message. This is because of the type of file it is. If you’re getting it from the computercraftedu.com site you should be fine.
- Go to the Minecraft Forge installer page HERE (v 10.13.4.1448 – for Minecraft 1.7.10). SEE THE WARNING ABOVE – and image below.
- Click the ‘Installer-win’ link. SEE THE WARNING ABOVE.
- Click the SKIP button – the file you want should be downloaded into the directory you choose or the default location. It should look something like: “forge-1.7.10-10.13.4.1448-1.7.10-installer-win.exe” (numbers may be different for newer versions)
- Go to the downloaded file location.
- Right-click on the file name and “Run as administrator”. If you are on your child’s machine and it has parental controls in place you may need to enter your credentials at this time.
- “Do you want to allow the following program… make changes to this computer” If it is for the “forge-lots of numbers.exe” file, Click ‘Yes.
- If the machine has Minecraft installed, the Forge installer will find one of the locations Minecraft files are being stored.
- Before we go ahead with the installation, we’re going to create a new folder that we’ll use later. Click the ‘…’ button to see where the files are stored.
Note: I created the folder this way because I was already at the folder/directory location. You’ll need to note the location for later…
- Create a new folder – I called mine “.minecraftCCEdu”
- Once the folder is created – Click ‘Cancel’. Yep. ‘Cancel’ to get back to the install screen.
- The install folder should still show the original “.minecraft” (as shown above). Click ‘OK’
- It should download files, unpack stuff, and successfully install Forge.
- Click ‘OK’
- Open Minecraft launcher
- In the lower-left corner of the launcher, there is a Profile drop-down control and some buttons. Note the name of the default profile (probably the name of the Minecraft user) and click ‘New Profile’.
- The Profile Name is probably something like “Copy of [username]”. I changed this to “[Username]CCEdu”
- Check the “Game Directory” box, and change the folder path to your new folder – “.minecraftCCEdu”
- for the “Use version” option, click the drop-down and select ‘release 1.7.10-Forge…..’
It’ll be the last (or close) in the list.
- Click ‘Save Profile’
- Select the new profile from the drop-down.
- Click ‘Play’ – There should be some Forge loading bars that are new…
- (files and folders get created in your new directory)
- Quit Game
- Copy the ComputerCraftEdu .jar file from its download directory into your new .minecraftCCedumods directory.
- Open Minecraft launcher
- Make sure your new profile is selected
- Click ‘Play’
- Click ‘Create New World’
- Name it, select ‘Game Mode Creative’, Click ‘Create New World’
- To verify the mod is loaded, open your inventory. There should be a second page of options now showing ‘ComputerCraft’ and ‘ComputerCraftEdu’ icons.
- Congrats! Have fun experimenting!
- Some great Help links to get you rolling once you’re installed and configured.
- Also: Introduction to ComputerCraftEdu
- The separate Minecraft profiles you created should keep your ‘normal’ worlds separated from your ComputerCraftEdu worlds – if you’re anything like my kids you have a bunch of worlds in your profile, so this is a nice feature.
Plenty of folks talk about variations on a theme here. I’ve hidden the Title field before, no big deal. The order I happen to use this time was a little confusing though.
I have a list where I know I’m using content types. So right after I’ve created the list, before I do anything else I turn on Advanced Settings –> Allow management of content types and then add my content types to the list. Within those content types, I have the Title field hidden. Within the ‘inherited from’ content types, the Title field is hidden. I figure I’m covered. Now when I open the list in datasheet mode and add a new row of information I get an error. First it was that a required field was not in the view so I needed to add a handful of columns back in. Then, I attempted again to add an item and the Title field gets the red box. What the heck? It’s supposed to be hidden. I tried changing lots of different settings all over the place but nothing worked. Frustrating.
Maybe you’ve seen this, maybe you haven’t – but it stumped me for a while before figuring out the simple solution thanks to Marc Anderson’s post. All I needed to do at this point was turn off the List Settings –> Advanced Settings –> Allow management of content types, then make the Title field not required, then turn Advanced mode back on. Even though I’d done the same thing to all the content types (including Item), I still needed to explicitly change the setting on the field itself. Makes sense once you figure it out, but quite frustrating when you’re in the mix trying to make it work.
SharePoint Server 2010 has a web part on the My Site page called ‘My Organizational Chart’. This web part (and the related Silverlight control on the Organization tab) use the ‘manager’ field in the Profile database to show the company org chart from the perspective of the My Site that you are visiting. For example – if you are looking at ‘Bob’s My Site, the org chart shows Bob’s manager, Bob’s co-workers (folks that report to the same manager), and people that report to Bob. It may also show further up the ‘tree’ (manager’s managers, etc.…) – which is where this tidbit comes in.
What I haven’t been able to find thus far is any reference to the functionality that we recently noticed: If two different users are viewing the same person’s My Site, they may not see the exact same content in the My Organization Chart web part. No differences in the people or relationships, but in the scope of the results. One user may see the org chart go all the way to the CEO/President, while another user may see only the My Site owner’s manager.
Again, this is likely documented somewhere, but I haven’t found it yet. What I think the web part is doing is showing the current user us enough content to be able to draw a line / see the relationship between themselves and the My Site owner.
So, if you are in IT and are looking at someone else in IT, the Org Chart will only show as far as the common IT manager. If you (someone in IT) is looking at someone that works in Marketing, the Org Chart may go all the way up to the CEO because both the CIO/IT Director and the Marketing Director report to the CEO and that is the ‘lowest common denominator’ as it were.
Of course, there also seem to be exceptions – and I likely haven’t seen them all. One, however, is if you search for and are looking at a person who IS a manager in your reporting structure. In that case you will also see their manager in the Org Chart web part.
Note: You can still click on other people in the Org Chart web part or jump to the Organization tab and navigate up, down and across the org chart data to your heart’s content.
I think this is another example where Microsoft did something that’s pretty cool and forward thinking – it just works. However it may cause some frustration with users (kind of like ‘social distance’ in Search). I’ve been looking at these pages for years and had never noticed this until a particularly attentive QA person brought it up because they by default expect the results to be the same for every person. In most cases, that’s not an unreal expectation.
Yep, it’s that time of year again. We’re ramping up for the Fall 2012 SharePoint Saturday Twin Cities event. We’ll be meeting on November 3rd this year, still at the Normandale campus down in Bloomington.
We’re not planning on covering a lot for 2013 in our sessions just yet – too many folks are still interested in and using 2010 and the final 2013 version hasn’t been released yet. So, we’ll be focused on 2010 for one more round at least and then see where things are in the Spring. You’ll likely hear a LOT of news about 2013 the following week with the big Microsoft SharePoint Conference in Vegas happening and most of it centered on the 2013 platform.
We are also continuing with our 101 Track – so if you have folks that are new to SharePoint, the event has content for them as well. We’ve got 4 sessions specifically in the track – starting with my ‘What is this thing called SharePoint’ session – but there are other sessions throughout the day not in the 101 Track that folks new to the platform can certainly benefit from as well.
Keep an eye out for registration to open next Monday – Sept 10. We will be limiting registration to 600 people again this time as it seems to be getting us to about the level we can manage at the current location. The Spring event had over 460 attendees… We’re one of the largest SPS events in the country.
There are lots of great sponsors again as well, we hope to fill up our space with 30 vendors – they’ll be added to the site as soon as they are validated.
Finally, when putting the event in your calendar, don’t forget to set aside Friday night as we’ll be having our SharePint (the night BEFORE the SPS event). More info to come on that…
If you have any questions about the event, let me know!! I look forward to seeing you there.
The new book is out! Brought to you by the wonderful folks at Microsoft Press.
Creating and Implementing Real-World Projects with SharePoint 2010 is intended to be a practical guide for evaluating business needs and creating SharePoint solutions using the out of box capabilities. The audience for our book is anyone who wants to build solutions: from someone newly familiar with the core SharePoint concepts (lists, libraries and sites) through .NET developers who want to be more familiar with the platform so they know when code is needed and when it is not.
Where I believe it is a bit different from other step-by-step how-to books is that we start from the business requirements and walk through steps in the decision making and design phases all the way through creating a fully functioning site. So, rather than just the click-by-click solution building, we are also introducing enough of the analyst methodology to show others why decisions were made.
Now, we’re obviously not going to be able to capture every single decision made, but hope to walk through enough of the process to help someone who wants to build business solutions on the various SharePoint 2010 platforms how to get started and be successful with their own solutions.
For my chapters (8,9,10), I wanted to demonstrate solutions that could be created on any of the available versions of SharePoint, including the Office 365 Small Business plan and SharePoint Foundation. So, they are a bit on the simplistic side but I think demonstrate a number of core concepts that can be re-used for other solutions as well. These solutions can also be augmented with additional functionality, more-so with higher level versions (SharePoint Server, Enterprise and Office 365 E plans).
Note: This book was originally conceived of as a digital only book that could continue to evolve as best practices and platform capabilities changed and feedback was received. But, alas we went ahead with a traditional publication. I do plan to continue commenting on and adding to my chapters by way of blog posts, etc. If it is received well, I’d also hope to see a ‘vNext’ version (post 2010) that revisits scenarios with new functionality and takes off where this one left off. So, let us know what you like, and what you’d like to see done differently.
The concept for this book and chief cat-wrangler of the authors was Jennifer Mason.
- Jennifer Mason (SharePoint MVP)
of Rackspace (formerly SharePoint 911)
- Christian Buckley (SharePoint MVP)
- Brian Jacket
- Wes Preston (SharePoint MVP)
Big thanks also go out to the folks at O’Reilly and Microsoft Press for publishing for us.
Check it out on Amazon – available as paperback or Kindle versions:
Microsoft SharePoint 2010: Creating and Implementing Real-World Projects
Ebook versions are also available through the O’Reilly site.
If you have a chance and can provide feedback – please do. Blog about it, reply to this post, or write a review on Amazon and then let us know!
SPD = SharePoint Designer, currently in the 2010 version.
In my previous post about using Office 365 as a learning platform for SharePoint, I briefly mentioned SharePoint Designer. But, we could have spent a lot more time talking about it than that – hence this follow-up post.
In the previous post, I mention using Office 365 because its very inexpensive and easy to spin up for any user, giving you the ability to learn and try things you might not be able to in your production environment. Well, is even more true with SharePoint Designer.
Creating new sub site, new lists, tweaking list columns and playing with views are all things you can do in your SharePoint environment and they are *mostly* non-impacting on your production environment – if you play with them the right way and don’t affect your users. SharePoint Designer has a little higher risk level, can be a little more invasive/impacting on uses, and some environments have it disabled – so you’re not even able to use SPD in your current sites.
Enter Office 365 and SharePoint Online. Now you not only have a great way to use and ramp up on out of the box browser-based capabilities, but you have a fully-functioning site that SharePoint Designer can plug into – without risking your production environment and content. You can now build and demo functionality that you can show your colleagues, bosses and IT/SharePoint team to demonstrate the value that can be had with SPD created solutions.
Top things to check out with SharePoint Designer using your new Office 365 account (in my humble opinion):
- Conditional Formatting – If this value is lower than X, then display this field with red text, show this funky icon, etc…
- Data Views – Format list views in ways you can’t with the browser-based configuration capabilities.
- Condition/Action Driven Workflow – Create basic and more complicated workflows that aren’t available in the pre-created workflows.
- Adding and Editing forms – Very quickly add or edit NewItem and EditItem forms. For example remove fields or reformat the form to make it more intuitive for users.
- ‘Designery’ stuff. – Yea, not my bag, but can’t talk about SPD without mentioning it’s capabilities of managing and tweaking the site design.
There is more, but that’s these are the top items that come to mind for me and deliver a lot of value in the business cases I’ve seen.
Plus – SharePoint Designer 2010 is free. So check it out.
Want to learn about SharePoint core list and library functionality in your own playground?
I’m doing two SharePoint 101/Intro to SharePoint talks this week. One for a local company’s internal user group and another longer one for the Minnesota SharePoint User Group. One was 2007-centric while the other was 2010-centric. As I go through the content, it never ceases to amaze me how a basic understanding of the core concepts of lists is invaluable to working with SharePoint – regardless of the version and how many of the wiz-bang features you are implementing in SharePoint.
So, that brings me back to a topic I’ve been meaning to raise for a while now in regards to Office 365. Unless you’re in the IT department at your company or have connections, you may not have easy access to a ‘sandbox’ where you can try out different SharePoint capabilities without potentially effecting production data. Yes, there was definitely ways you can do and try some things, but at the end of the day, you want to play around and production generally isn’t the best place to do that.
Enter Office 365. With the current version of SharePoint Online offered, the comparison to on-premises functionality is pretty good, especially when talking about the core features I’m talking about. Yes, there are differences, but if your intent is to get a baseline understanding of Lists, Libraries, Views, Columns, SharePoint Designer (SPD) capabilities, out of the box and SPD workflows, and more – SharePoint Online is a great place to do it.
I don’t want to get into the detailed feature comparisons in this article, but P1 is analogous to SharePoint Foundation while the E3 plan is closer to the SharePoint Server/Enterprise features.
It’s REALLY easy to spin up an account and have a SharePoint site ready to play with. You don’t have to have your own domain name (.com address, etc.) or really anything else to get started.
Office 365 is FREE for a 30 day trial, so you don’t really have any excuses. If you want to keep your site around, you can pay as little as $6/month (for a single user) or
$10 $8/month (also a single user, in the E1 plan, which you can downgrade to when your E3 trial ends). Thinking about that as training costs – it’s nothing. Now, you have your own private (and supported) environment where you can try things out without needing to bug IT for a site, list or whatever AND when you put something cool together you can easily show it to your boss or co-workers.
Now, you’ve got an Exchange email account and a Lync account you can play with as well (topics for another day…). The Exchange account doesn’t need to be configured on any client devices if you don’t want – it can be fully accessed via the O365 web interface which could be useful if you’re experimenting with SharePoint workflows and don’t want to clutter up a real mailbox.
If you do want to add a real domain name to the account, it’s pretty easy as well – the O365 documentation is pretty helpful. Only note I’ll make here is to not use a domain name that you are currently using as a Windows Live account as there may be some conflicts there – another topic for later.
So go get the trial of either the Small Business (P1) or Mid/Enterprise (E3) plan and get started now. It’ll make you a better SharePoint user. Don’t forget to read my previous post about picking your domain name before signing up…
*Just a day after I wrote this Microsoft went and added/changed some things – namely they LOWERED the price of the Enterprise licenses which makes it even harder to decide between the two. Find out more HERE
Just a few little tidbits to keep in mind when creating an Office 365 account, for trial or other reasons. When signing up for your account, you are asked to define a ‘New domain name’ (at the bottom of the image)
I find this a little confusing because most of us identify a ‘domain name’ as your sites main URL – like “idubbs.com”. What the registration is asking for isn’t the same thing. Being part of Microsoft’s ‘cloud’ offering, Office365’s domain name is “onmicrosoft.com”. They are asking for a subdomain name to use and be unique on their environment. The ‘real’ domain that you’ll likely be adding to the site later can also be used to log on, but so will the ‘domain’ name you are specifying at registration time. You may change your ‘real’ domain names, but your ‘onmicrosoft.com domain name’ will never change.
If you follow the What’s this link, you’ll get a little more information:
So – WHAT we’re talking about should now be fairly clear. The trivia that I’d like to call out is the following:
- At present, domain names can only be used for a single account/site one time. If you create a trial account and then close it, you can’t create another account with the same domain name.
- Domain names cannot be moved between the ‘major’ plan levels. For example, you can upgrade from E1 to E3, but you can’t take a domain from P1 to E1.
- Domain names cannot be edited or changed. They stick forever.
- Even if you add a real domain name to your account, the 365 domain name is still used in a few places. I can’t remember the other one I ran into, but the first place – that I still see from time to time, bugs me and is public facing – is when you send a Lync meeting link. It looks something like:
So, if you’re really creating a test trial, don’t use a name that you might want to use for real. In fact, use something almost completely irrelevant if you want. It would look better in that Lync URL than something that might seem dated or just wrong.
When you create your actual 365 account put at least a little thought into the domain name, even though it will mostly be behind the scenes. Think about how your marketing department might react to an old brand term showing up in that Lync URL when sending meeting invites and links to your customers.