{"id":168,"date":"2012-07-03T21:34:24","date_gmt":"2012-07-03T15:34:24","guid":{"rendered":"http:\/\/markwheeler.com\/wordpress\/?p=168"},"modified":"2012-07-03T21:34:24","modified_gmt":"2012-07-03T15:34:24","slug":"sharepoint-2010-personalization-site-and-global-navigation-audience-targeting","status":"publish","type":"post","link":"https:\/\/markwheeler.com\/?p=168","title":{"rendered":"Sharepoint 2010 Personalization Site and Global Navigation Audience Targeting"},"content":{"rendered":"<p>For whatever reason; the Global Navigation in a Personalization Site template does not support Dynamic FlyOut menus OR Audience Targeting.<\/p>\n<p>I had added several custom links in my top navigation bar and audience targeted them according to specific user roles. All users, however, could<br \/>\nsee every link regardless of the audience targeting.<\/p>\n<p>Here&#8217;s my workaround.<\/p>\n<p>1. In your default.master remove the globalnavigation delegate control.<\/p>\n<pre>&lt;sharepoint:delegatecontrol runat=\"server\" controlid=\"GlobalNavigation\" \/&gt;<\/pre>\n<p>2. Replace it with the following copy of the TopNavigationMenu<\/p>\n<pre>&lt;!-- Start New Nav --&gt;\n&lt;link rel=\"stylesheet\" href=\"myDBMenu.css\" type=\"text\/css\"\/&gt;\n&lt;asp:ContentPlaceHolder id=\"PlaceHolderHorizontalNav\" runat=\"server\"&gt;<\/pre>\n<pre>&lt;table style=\"width:100%;background-color:#24394F; border-bottom:2px black solid;\"&gt;\n&lt;tr&gt;&lt;td&gt;\n &lt;SharePoint:AspMenu\n ID=\"myDBmenu\"\n Runat=\"server\"\n DataSourceID=\"topSiteMap\"\n EnableViewState=\"false\"\n AccessKey=\"&lt;%$Resources:wss,navigation_accesskey%&gt;\"\n Orientation=\"Horizontal\"\n StaticDisplayLevels=\"2\"\n MaximumDynamicDisplayLevels=\"1\"\n DynamicHorizontalOffset=\"0\"\n StaticPopoutImageUrl=\"\/_layouts\/images\/menudark.gif\"\n StaticPopoutImageTextFormatString=\"\"\n DynamicHoverStyle-BackColor=\"#CBE3F0\"\n SkipLinkText=\"\"\n StaticSubMenuIndent=\"0\"\n CssClass=\"myDBmenu\"&gt;\n &lt;DynamicHoverStyle CssClass=\"myDBmenuFlyOutsHover\" \/&gt;\n &lt;DynamicMenuItemStyle CssClass=\"myDBmenuFlyOuts\" \/&gt;\n &lt;DynamicMenuStyle CssClass=\"myDBmenuDynamo\" \/&gt;\n &lt;StaticHoverStyle CssClass=\"myDBmenuHover\" \/&gt;\n &lt;\/SharePoint:AspMenu&gt;\n &lt;SharePoint:DelegateControl runat=\"server\" ControlId=\"TopNavigationDataSource\" Id=\"topNavigationDelegate\"&gt;\n &lt;Template_Controls&gt;\n &lt;asp:SiteMapDataSource\n ShowStartingNode=\"False\"\n SiteMapProvider=\"SPNavigationProvider\"\n id=\"topSiteMap\"\n runat=\"server\"\n StartingNodeUrl=\"sid:1002\"\/&gt;\n &lt;\/Template_Controls&gt;\n &lt;\/SharePoint:DelegateControl&gt;\n &lt;\/td&gt;&lt;\/tr&gt;\n &lt;\/table&gt;\n &lt;\/asp:ContentPlaceHolder&gt;<\/pre>\n<pre><\/pre>\n<p>3. I am also using my own Style sheet; that for your reference is below.<\/p>\n<pre>.myDBmenu\n{\n background-color:#24394F;\n font-size:10pt;\n padding:5px;\n font: #FFF;\n \u00a0color:#FFF;\n}\n .myDBmenu A:Visited\n{\n color: #FFF;\n}\n  .myDBmenu td\n{\n padding-right:5px;\n text-align:center;\n}\n.myDBmenuHover\n{\n}\n.myDBmenuDynamo\n{\n background-color: silver;\n border:thin black solid;\n width:15%;\n }\n .myDBmenuFlyOuts table\n{\n width:15%;\n background-color:gray;\n}\n .myDBmenuFlyOutsHover\n{\n width:15%;\n background-color:gray;\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For whatever reason; the Global Navigation in a Personalization Site template does not support Dynamic FlyOut menus OR Audience Targeting. I had added several custom links in my top navigation bar and audience targeted them according to specific user roles. All users, however, could see every link regardless of the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2,10,11],"tags":[26,46,79,99],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-computer","category-sharepoint","category-software","tag-audience-target","tag-global-navigation","tag-personalization-site","tag-sharepoint-2010"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/markwheeler.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/markwheeler.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":0,"href":"https:\/\/markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}