Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Customize NavBar in onet.xml

$
0
0
  1. I created a site collection using the browser interface of SharePoint Foundation 2013: Application Management > Create Site Collection, set 28813-9 as title, http://host/sites/28813-9 as url and select template later.
  2. Created a project in Visual Studio Professional 2012: File > New Project > SharePoint 2013 - Empty Project, 28813-9 as project name, Deploy as Fram Solution with http://tstbpp2/sites/28813-9/
  3. Clicked on project node, Add > New Item.. > Site Definition (Farm Solution only) with name 28813-9-SiteDef
  4. Clicked on project node, Add > New Item... > Module, named this Module 'Pages'
  5. Edited onet.xml
<NavBars><NavBar Name="My Link" Url="/Pages/Sample.txt" ID="5000" /></NavBars>

  1. (1=5) Clicked on project node and did 'Deploy'
  2. Opened url http://tstbpp2/sites/28813-9/Pages/Sample.txt in webbrowser and got: Placeholder file for the SharePoint module. A module contains files that are included in a SharePoint application when it is deployed. For more information, search Help for module.
  3. Opened url http://tstbpp2/sites/28813-9/ and could not see "My Link" which I configured in onet.xml.

So, my customization of NavBars is not being taken. What a I doing wrong?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>