Article Categories
Archives
Post Categories
  Jump to Information for:
Search:  

If you are working with a SharePoint master page and trying to get away from using the multiple tables that the default master page uses, the edit consoles (WSSDesignConsole and PublishingConsole) may create problems for you.

The issue: The WSSDesignConsole and the PublishingConsole are user controls, which means that the interface code for the consoles is stored outside of the master page and is locked down.  The interface code for these consoles starts off with a table row tag (<tr>) and not a table tag (<table>), so the potential end result is your master page rendering differently than what you have specified in the master page code.  The consoles may cause your table cells or rows to end prematurely, thus throwing off your design.

The fix: Inside of the content placeholder, add wrapping table tags (<table>) around the user control.  Here is an example:

<!--- --- --- Edit Consoles --- --- --->
   <!-- Edit console that appears in page Edit mode -->
   <asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server">
    <table><wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server"/></table>
   </asp:ContentPlaceHolder>
   <!-- Publishing console control -->
   <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
    <table><SharePoint:DelegateControl runat="server" ControlId="PublishingConsole"
       PrefixHtml="&lt;tr&gt;&lt;td colspan=&quot;4&quot; id=&quot;mpdmconsole&quot; class=&quot;ms-consolemptablerow&quot;&gt;"
       SuffixHtml="&lt;/td&gt;&lt;/tr&gt;">
    </SharePoint:DelegateControl></table>
   </asp:ContentPlaceHolder>
<!--- --- --- End of Edit Consoles --- --- --->

posted on Thursday, October 25, 2007 11:10 AM
Comments
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Tim
    Posted @ 10/26/2007 1:44 AM
    Thanks for the tip, i'd that problem for a while, had no real clue why it's happening and ended up using the old table header.
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Andy
    Posted @ 10/26/2007 3:55 AM
    The other thing to note is that the Publishing Console is a delegate control, and so can be replaced by a feature.

    I came across the spurious table row issue earlier this week, and was thinking about writing a feature to replace the Publishing Console. I imagine that MOSS will end up like MCMS - that people usually replace the console.

    If I replace the Publishing Console, I'll stick it on CodePlex
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Kevin
    Posted @ 10/29/2007 9:24 PM
    Heather, I'll go you one even better! Look at the "PrefixHtml" and "SuffixHtml" parameters. Either add the <table> and </table> tags in there or just strip out what's there and replace with divs.

    Good to see you blogging again. Wish I could have made Connections to SharePint with you.
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    adam
    Posted @ 11/2/2007 9:25 AM
    could refraining from using tables in your design prevent this also?
  • # re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Darrel
    Posted @ 11/14/2007 4:33 PM
    At what point in the MOSS development cycle did someone at Microsoft go "you know, having that web part render invalid partial table markup is an EXCELLENT IDEA!"

    This is insanse. It's insane that you figured this out, Heather (though I'm going to be forever grateful now!)

    Kevin...that's a great note, too. Thanks for that!

    " could refraining from using tables in your design prevent this also?"

    Is that possible!? If so, please expound upon that!

    I tried in vain to create table-less Masterpages but between core.css, and the fact that MOSS insists that all admin content editing interfaces should be on TOP OF my presentation interface, I couldn't get everything to cooperate unless I caved in and used at least some basic tables to get page columns and such lined up and working.
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Tom
    Posted @ 11/19/2007 9:49 AM
    Another tool that might help with this issue is the free "Floating Console" from Artemis: http://www.rapid-for-sharepoint.com/Features/SharePoint-floating-console.htm
  •  re: SharePoint 2007 Design Tip: Edit Consoles Throw Off Your Design
    Randy
    Posted @ 6/27/2008 3:00 PM
    Thank you for your tip,
    thank you, thank you, and thank you again.
Title  
Name  
Email (never displayed)
Url
Comments   
ALL COMMENTS ARE MODERATED! Sorry for the inconvenience, but it is how I keep all of the spam and advertisers out. I moderate comments about once a week and your comment will appear soon. Thanks for posting!
Please add 7 and 7 and type the answer here:

Copyright © 2005-2008. Heather Solomon.
Site design by Heather Solomon

Blog Stats:
Posts - 375
Stories - 38
Comments - 1476
Trackbacks - 182