{"id":16,"date":"2008-02-17T14:17:00","date_gmt":"2008-02-17T18:17:00","guid":{"rendered":"http:\/\/everysport.net\/GamePlan3\/Default.aspx?tabid=489&amp;EntryID=2"},"modified":"2008-09-18T16:37:28","modified_gmt":"2008-09-18T20:37:28","slug":"configuring-custom-inavigationservice-in-wcsf-library","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/2008\/02\/17\/configuring-custom-inavigationservice-in-wcsf-library\/","title":{"rendered":"Configuring custom INavigationService in WCSF library"},"content":{"rendered":"<p>I was <a href=\"http:\/\/www.codeplex.com\/websf\/Thread\/View.aspx?ThreadId=13863\">dismayed to discover<\/a>\u00a0that one could not configure a custom INavigationService at the web.config level.\u00a0 As part of my experiments to integrate PageFlow into a DotNetNuke module, I needed such customization, and wanted to continue to configure the providers in the web.config.<\/p>\n<p>So, instead of kludging and compiling my own custom PageFlow libraries, I decided to modify the framework itself and allow customization of the INavigationService at the web.config level.\u00a0 Required only a small number of code changes, and ultimately the navigation service interface is configured as:<\/p>\n<p>I created a work item in the WSCF project which discusses my changes in a little more detail.\u00a0 It essentially boiled down to\u00a0adding a new string attribute (NavigationType) to the provider section class (defaulting to the existing\u00a0Microsoft.Practices.PageFlow.Services.NavigationService), modifying the BuildProvider method to use this configuration value, and adding the extra parameter to the provider constructor.<\/p>\n<p>Work item is located <a href=\"http:\/\/www.codeplex.com\/websf\/WorkItem\/View.aspx?WorkItemId=15208\">here<\/a>.<br \/>\nPatch is located <a href=\"http:\/\/www.codeplex.com\/Project\/Download\/FileDownload.aspx?ProjectName=websf&amp;DownloadId=27695\">here.<\/a><\/p>\n<p>Hope this helps anyone who needs a custom navigation service for the PageFlow block in the WCSF.\u00a0 I&#8217;ll be continuing to blog about my attempts to integrate this block into a DNN module and\u00a0 have it play nicely with the DNN framework.<\/p>\n<p>B<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was dismayed to discover\u00a0that one could not configure a custom INavigationService at the web.config level.\u00a0 As part of my experiments to integrate PageFlow into a DotNetNuke module, I needed such customization, and wanted to continue to configure the providers in the web.config. So, instead of kludging and compiling my own custom PageFlow libraries, I [&hellip;]<\/p>\n","protected":false},"author":1933,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[142,3067],"tags":[3073,3072],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-technology","category-web-client-software-factory-wcsf","tag-inavigationservice","tag-wcsf"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/users\/1933"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/brandonhaynes\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}