Tuesday 14 June 2011

Starter Master page and Wiki Pages with version control.

So we have been using a branded SP2010 site based on Randy Drisgill's Starter Master page and this has been in place for the past few months.

But - with one site in particular, I was receiving the most unusual prompt after editing a Wiki page.  The library didn't require check-in/out, but did have major versioning turned on.

On saving the user was prompted by "You must specify a value for the required field". Short and sweet - but not very helpful.
 
After some research, I found reference to a great blog post by Sanna Pehkonen (thank you!) who noted an issue with the way the PlaceHolderPageTitleInTitleArea tag was hidden. Sanna suggests hiding the PlaceHolderPageTitleInTitleArea with CSS rather than through a visable="False" attribute.

Style sheet

.hiddenpanel{
   display: none;
}

 master page
<!-- ===== Hidden Placeholders ========================== -->
<asp:Panel cssclass="hiddenpanel" runat="server">

this worked a treat!

Monday 28 February 2011

No more ‘change view’ dropdown after changes in master page

I’m not sure when it happened, but I noticed today that I couldn’t change views…. I checked – yep, views all there, but no drop down box was showing on the Library ribbon.

I had been working on this master page for a few weeks now, tweaking as I found issues. I had started from the Starter Master page (thanks Randy Drisgill) and it seams this
No JavaScript errors and the problem seemed to be caused by an early change to the master page.

After much googling – I found a few references to SPNavigationManager. Sure enough, my master page was missing this element, but the v4.master has 3 references to this. I discovered this code was missing. I copied this to my 'hidden placeholders' area – and bingo – fixed.

<!-- fix issue with drop downs on list views--><SharePoint:DelegateControl runat="server" ControlId="TreeViewAndDataSource"></SharePoint:DelegateControl>
<!--end-->

updated 3/3/11 with changes to code - thanks drisgill