Archive | July, 2013

Edit mode panel does not render at all on system pages

18 Jul

This one is a pretty odd one.

we had the need to emit some different css based on if a page was in edit mode or in display mode on a recent project, and so we put two edit mode panels on the master page.

one with PageDisplayMode set to display.. and the coresponding HTML that we wanted to render..

and another edit mode panel set to edit that renders the other one.

Now, keep in mind there are only two settings for that flag. display or edit.

Worked great, went to our pages, detail pages, list pages, web part pages etc.. edited the page.. and all the changes we expected to see were there and happy.

Now, I repeat, keep in mind there are ONLY two settings for that flag. display or edit.

We then went to a system page, view all site content or site settings.. and the branding/design was ALL kinds of messed up? what gives?

As it turns out, the edit mode panel for some reason.. rendered nothing.

neither edit mode panel was rendered. Which I would have *assumed* would have been impossible since we had a panel configured for every possible option. and Since this was the same master page everything else was using.

and so since this is SharePoint.. my assumptions were wrong.

So there is either a secret third option? or some weird change that only the system pages make.

I don’t know, we ended up finding another approach that did not use edit mode panels.. but this was something I could not find any blog posts about.

So heads up. Edit model panels.. on master pages.. don’t render at all on certain system pages.

 

SP2013 disables org chart viewer.. but only on YOUR profile page

1 Jul

Put this in the strange but true category.

We received a defect report from a client doing a 2013 migration stating that the org chart viewer wasn’t working. Gave us a link to the page where it wasn’t working. Of course we went to verify the defect, but when we looked the org chart viewer was there.

Thought that was closed, but they insisted it wasn’t there. So assuming it was some sort of training issue, we went to show them where the viewer was and how to get to it. But when we went to see the same page on thier machine.. no Org chart. what?

So we went to a few other peoples profile pages. All of them worked. Just not theirs. Was this some wierd cache issue? Had they customized their page in a way that broke this?

Well with this new information, we went back to look at our own profile page. And turns out when anyone looks at their own profile, they cannot see the org chart viewer. So thinking this must be a bug, we went to go find a bug report from someone else, and hopefully find a fix or work around.

This was the post we found: http://blogs.msdn.com/b/chandru/archive/2013/04/01/sp15-organization-chart-in-mysites.aspx

Granted the date on the post is April Fool’s day, which always makes me suspicious. But concerns aside, it basically indicates, “yeah it does that because we thought turning it off was better than making it perform better”. And we did find another post not on April Fool’s Day, that matches the comments, and even links to that post. (http://social.technet.microsoft.com/forums/sharepoint/en-US/71046c9d-b7f6-4cff-81dd-5edf67bd9e11/sharepoint-2013-issue-with-org-chart-not-visible)

So there you have it, by design, and if you want it, custom event reciever and feature stapling to fix it. (unless I assume you are in office 365, then you are out of luck)