in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

How do you hide columns on a wiki page?

Last post 07-17-2008 5:52 AM by strainer. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-17-2008 12:21 AM

    How do you hide columns on a wiki page?

    I added several columns on a wiki page so that I could create views based on those columns. It works great for creating the views, but now I have a problem -- the columns appear at the bottom of the wiki pages when viewing a standalone wiki page. How can I hide those columns? I tried modifying the ms-formstable style to display: none, but then it hid the form I needed when editing the page.

    Filed under:
  • 05-21-2008 12:22 PM In reply to

    Re: How do you hide columns on a wiki page?

    Ditto, I'd also like to know how to hide them and only display the WIKI Content?

    Additionally, how do you add an Attachments column to a WIKI? Yes I know, I should just provide a link to the file in another SP Library.

    Thanks in advance....

  • 07-17-2008 5:52 AM In reply to

    Re: How do you hide columns on a wiki page?

    If you want to hide custom columns in wiki page, you can edit this file C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\DocumentTemplates\wkpstd.aspx. It's the template of wiki page.

    You can comment this entire section, which renders additional column list. Or you can add your column name, which you want to hide, to ExcludeFields property

    <TABLE class="ms-formtable" border=0 cellpadding=0 id="formTbl" cellspacing=0 width=100%>
       <SharePoint:ListFieldIterator
          ControlMode="Display"
          TemplateName="WideFieldListIterator"
          ExcludeFields="FileLeafRef;#WikiField"
          runat="server"/>
     </TABLE>

    You can find more about ListFieldIterator here http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.listfielditerator.aspx

Page 1 of 1 (3 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.