
They have about 5 or 6 photos a day, and at least one of them gets me doubled over in laughter.
Random musings about random things from random voices in the head of a couple random persons.
Hide The Screws. This is a classic Apple move. Mimic real world artifacts and make things feel less like technology devices and more like something you'd find in the real world. Pick up your iPod. It has no visible screws. It isn't even clear how the device comes together. Hiding the ugliness of technology makes these toys more endearing. Features like coverflow and the upcoming time machine further this notion of pulling design inspiration from the real world.
<SharePoint:AspMenuNote the DataSourceID. This tells the control where to get the info it needs (namely the titles on the menu and the links they go to).
ID="TopNavigationMenu"
Runat="server"
DataSourceID="topSiteMap"
EnableViewState="false"
blah blah blah />
<asp:SiteMapDataSourceOK, now we're getting somewhere. According to the aforementioned post and comment, this little bit of code provides a contextual data source for the menu at run-time. The way to force it to use a data source of my choosing (there are a handful of them defined in the web.config for the application) is to wipe that piece of code out altogether and replace it with something resembling the following:
ShowStartingNode="False"
SiteMapProvider="SPNavigationProvider"
id="topSiteMap"
runat="server"
StartingNodeUrl="sid:1002"/>
And for this tag to be recognized on the page there must be an accompanying registration for it at the top:
<PublishingNavigation:PortalSiteMapDataSource
ID="topSiteMap"
Runat="server"
SiteMapProvider="CombinedNavSiteMapProvider"
StartFromCurrentNode="true"
ShowStartingNode="false"
TreatStartingNodeAsCurrent="true"
TrimNonCurrentTypes="Heading"
/>
<%@ Register Tagprefix="PublishingNavigation"So far, so good, except after doing this I received the following error message on the page:
Namespace="Microsoft.SharePoint.Publishing.Navigation"
Assembly="Microsoft.SharePoint.Publishing, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=94de0004b6e3fcc5" %>
Could not load file or assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=94de0004b6e3fcc5' or one of its dependencies. The system cannot find the file specifiedHuh?