I have created a custom site definition following exactly the path layed out here: http://www.sharepointblogs.com/tbaginski/archive/2006/05/31/8013.aspx. Now I have a problem customizing default.master on a site. I have treeview enabled and quick launch disabled. Now when I go to Sharepoint Designer (2007) and edit the default.master then I can change the properties for the treeview displayed on the left part of the page. If I change the ExpandDepth value from 0 to 1 for example, then it works and two levels are displayed by default, if I click on the document library itself. Now I also have subfolders in the document library and for some reason, they are not shown anymore, not even a plus sign beside the folder containing the subfolders. If I'm viewing a page that uses the default.master, everything is OK. Now when I look at the allitems.aspx page of the document library in sharepoint designer, then I get the following error message instead of the tree view (which works fine on the default.master page):
TreeView
-WebTreeView
Error parsing control: Could not bind to the 'EncodedName' property (specified by TextField) while data binding TreeView. Please check the Bindings fields.
Here is the relevant source from SD in default.master:
<Sharepoint: SPNavigationManager
id="TreeViewNavigationManager"
runat="server"
ContainedControl="TreeView">
<table class="ms-navSubMenu1" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table class="ms-navheader" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap id="idSiteHierarchy">
<SharePoint: SPLinkButton runat="server" NavigateUrl="~site/default.aspx" id="idNavLinkSiteHierarchy" Text="<%$Resources:wss_juhtsyst,treeview_header%>" AccessKey="<%$Resources:wss_juhtsyst,quiklnch_allcontent_AK%>" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="ms-treeviewouter">
<SharePoint: SPHierarchyDataSourceControl runat="server" id="TreeViewDataSource" RootContextObject="Web" IncludeDiscussionFolders="true" />
<SharePoint: SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="javascript:_spRecordScrollPositions(this);" Style="overflow: auto;height: 400px;width: auto; ">
<SharePoint: SPTreeView id="WebTreeView" runat="server" ShowLines="false" DataSourceId="TreeViewDataSource" ExpandDepth="0" SelectedNodeStyle-CssClass="ms-tvselected" NodeStyle-CssClass="ms-navitem" NodeStyle-HorizontalPadding="2" SkipLinkText="" NodeIndent="12" ExpandImageUrl="/_layouts/images/tvplus.gif" CollapseImageUrl="/_layouts/images/tvminus.gif" NoExpandImageUrl="/_layouts/images/tvblank.gif">
</SharePoint: SPTreeView>
</SharePoint: SPRememberScroll>
</div>
</Sharepoint: SPNavigationManager>
Has anybody tried playing with the treeview My problem is, that I want the treeview to display all subfolders properly (this, it SHOULD do) AND I want it to display the treeview if I'm currently in one of the subfolders, so that the root object would be at all times, the document library itself.