RE: Adding pages to the site
- From: Rob <Rob@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 9 Jan 2006 09:36:02 -0800
Erdal,
You can create and add additional pages to a site when you create a new site
definition.
Create a new site def and then copy the default.aspx file and paste it into
the same folder. Rename it "artifacts.aspx".
In the ONET.XML file of your site def, you can create links to your new page
in your top navigation bar by doing something of the following...
<Project Title="New Site Def" .....
<NavBars>
<NavBar Name="SharePoint Top NavBar"....
<NavBarLink Name="Artifacts" Url ="artifacts.aspx"></NavBarLink>
Then at the bottom of the ONET.XML file in the <Module> section, you add the
new page to your module.
<Modules>
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True">
.
.
</File>
<File Url="artifacts.aspx">
<!-- THIS WILL PUT AN ANNOUNCEMENT WEBPART ON THE -->
<!-- ARTIFACTS.ASPX PAGE -->
<View List="104" BaseViewID="0" WebPartZoneID="Right" />
</File>
</Module>
</Modules>
Now you will be able to access your new page at the following URL:
http://<server_name>/<site_name>/artifacts.aspx
I hope this helps.
Rob Cuscaden
"Erdal" wrote:
> First:
> I added pages to my site but I can not find them in my server. Where were
> those files which I added copied?
>
> Second:
> Can I copy and use default.aspx for other pages like this:
>
> Home page:
> http://my_site/default.aspx
>
> Second page:
> http://my_site/secondpage.aspx
>
> *secondpage.aspx will be inherit and changed from default.aspx with another
> tool such as ASP .NET and copied same folder with default.aspx.
.
- Prev by Date: Re: dynamic web page viewer based on url in query sting?
- Next by Date: Re: Customised Advanced Search
- Previous by thread: Further customization of search results, show total number of search hits
- Next by thread: Re: Customised Advanced Search
- Index(es):