Site Pages vs Pages Library

Hi
I've noticed that if a Page is created in the Pages Library it cannot be edited in SPD however if a page is created in Site Pages Library it can.
We have used pages library as it offers page layouts but dont like the fact the page cannot be edited in SPD.
We dont require the publishing feature apart from the page layouts aspect, if this can be achieved in site page then this would be a better alternative.
Currently we have added webparts to pages in pages library using ui.
And advice?
Thanks

Hi,
According to your post, my understanding is that you wanted to edit page which is created in the Pages Library in SharePoint Desiger.
When we want to edit the file of the page, we will get the message as below:
It is because that the page we are trying to edit is under the publishing feature. It is a publishing page, and as such, by default, gets it's layout from the layout page and the master page.
The only change we should be doing on such a page is edit it in the browser and add\remove\change web parts in it.
However, there is a way to work around this - detach it from it’s layout page.
We can select the page, on the All Files ribbon, click the Detach from page Layout button and then proceed to edit as normal.
More information:
My SharePoint World: SharePoint + Differrence between pages and site pages
SharePoint Designer 2010: This page cannot be edited in SharePoint Designer
Thanks,
Linda Li                
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support

Similar Messages

  • How to retrieve the Page ID of newly created page in site pages library using javascript

    I am creating the page programmatically under site pages library and want to get the ID of that newly created page.

    Hi,
    The following JavaScript Code for your reference:
    <script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"> </script>
    <script type="text/javascript">
    $(document).ready(function () {
    var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Site Pages')/items?$select=ID&$orderby=Created desc&$top=1";
    // execute AJAX request
    $.ajax({
    url: requestUri,
    type: "GET",
    headers: { "ACCEPT": "application/json;odata=verbose" },
    success: function (data) {
    alert("The newly created page ID is " + data.d.results[0].ID);
    error: function () {
    alert("Failed to get customer");
    </script>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to Export Team Site Site Pages to .aspx and for subsequent upload to other Team Site and Web Part Customisation included. (Powershell)

    Hi guys,
    Can i please technically know how to export an .aspx file (in Site Pages library of a team site) to local file?
    Basically, SharePoint Designer has this feature "Export File"
    i Need exactly the same feature that can be done in Powershell
    I tried the following
    $web = get-spweb "MY URL"
    $folder = $web.GetFolder("SitePages")
    $files = $folder.files
    #trying to download the first file
    [System.IO.File]::WriteAllBytes("C:\\LocalPath",$files[0].OpenRead(),$true)
    The file exported via this method is Clean HTML without the Web Part Customisation!
    I NEED the web part customisation in the exported files.
    Sample downloaded via above script
    <!-- Cropping -->
    <tr>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:LeftColumn" ID="LeftColumn" FrameType="TitleBarOnly"/> </td>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:MiddleColumn" ID="MiddleColumn" FrameType="TitleBarOnly"/> </td>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" valign="top" height="100%"> <WebPartPages:WebPartZone runat="server" Title="loc:RightColumn" ID="RightColumn" FrameType="TitleBarOnly"/> </td>
    </tr>
    <!-- Cropping -->
    I tried using WebRequest, it returns the  End HTML, which is not working too.
    Please if anyone has done this? Or is there any SharePoint Designer Developer here and is willing to share how to perform the export in SharePoint Designer via Powershell? API available?
    Much Appreciated!
    Cheng

    Hi,
    According to your post, my understanding is that you wanted to export Team Site Site Pages to .aspx and for subsequent uploaded to other Team Site and Web Part Customisation included using Powershell.
    You can export a specific file or object from the Export-SPWeb context.
    Export-SPWeb -identity "http://sharepoint" -ItemUrl "/default.aspx"  -Path "c:\default.aspx"
    Import-SPWeb -identity "http://sharepoint" -Path "C:\default.aspx"
    Here is a similar thread for you to take a look at:
    http://sharepoint.stackexchange.com/questions/56664/how-to-download-a-sharepoint-aspx-page-from-server-using-powershell
    More information:
    http://technet.microsoft.com/en-us/library/ee428301(v=office.14).aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Multiple page library in one site

    is there any way to create more than one page library in the same site programmatically in SharePoint 2013??
    Mohamed Abdeen

    There is no way to create multiple Pages libraries in a site.  You can now create folders in your Pages Library to separate out different pages, but you can only have one Pages library per site collection because of the way it interfaces with other
    features in the site.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Unable to add page in Page library of SharePoint 2007 site

    The site is not valid. The 'Pages' document library is missing.   at Microsoft.SharePoint.Publishing.PublishingWeb.get_PagesList()
       at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.LoadValues()
       at Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage.LoadValues()
       at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.OnLoad(EventArgs e)
       at Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    above error is occuring when trying to add page in Page library through UI.
    Office SharePoint Server Publishing feature is active.
    Please help to resolve the issue.
    Rushikesh_Khadtare

    Hi,
    Running the below PowerShell script fixes the issue, you need to change the site url. The script actually looks for the pages library in the site for which url is given and assigns the ID of the pages library to the __PagesListId property.
    # Load the SharePoint assemblies
    [Void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $web = get-spweb http://site-collection/path-to-affected-site
    $correctId = $web.Lists["Pages"].ID
    $web.AllProperties["__PagesListId"] = $correctId.ToString()
    $web.Update()
    Then  try to de-activate and re-activate the publishing feature again.
    Reference:
    http://www.rjesh.com/2014/02/the-site-is-not-valid-pages-document.html
    http://blogs.technet.com/b/praveenh/archive/2013/01/22/running-powershell-on-moss-2007.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Printing SharePoint 2013 Wiki Page Library as a whole

    Hi!  I'm trying to find a good solution for printing an entire SharePoint 2013 Wiki page library.  In SharePoint 2010 I built a site and created a printer friendly view that used "Wiki Content" column that only printed the contents
    of the wiki pages as a whole using the solution from this link:
    https://mail.americredit.com/owa/redir.aspx?C=Wl_sVZBaUUqYaSN9F2Qq6Mc3RL-ZwtEIzEWL5ULgM7U6Hr1eoqsoq26BC3E89ofm2Liksb54EjM.&URL=http%3a%2f%2fwww.eblogin.com%2feblogin%2fpost%2f2011%2f11%2f24%2fsharepoint-wikiPagePrint.aspx%23.VDVWdPldVBc
    It was very easy to do and my client loved it.  However, now that we are starting to migrate over to SharePoint 2013 I don't see the same column option and I haven't been able to create a printable view like the one above.  Is there a way
    to do this in 2013 like what was available in 2010? 

    Hi Jeremy,
    That link take me through to an Exchange Login.  Can you provide another link for the solution you've used.
    An older solution that sounds familiar is in this thread.  It's for an older version of SharePoint but should still work
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1612dfdb-f85c-4e6f-90f4-3d6c24b6472c/how-do-you-print-a-sharepoint-wiki
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • The system Pages library and its RSS feed do not work properly in SharePoint 2010

    This question is about RSS feed for the system 'Pages' library in SharePoint 2010.
    Now there are 5 'News' pages in the system 'Pages' library. In each news page there is one field called 'Title' for the news title. One of the news page is named 'FileNamePage5.aspx', and the news title is 'This is the title of page5'.
    I have enabled RSS in Site Settings, and configured RSS Settings for the 'Pages' library from the Communications section via Document Library Settings. I selected a few columns to display in the RSS description, including the 'Title' column. In the RSS feed
    (XML file) of the system 'Pages' library, I checked the XML source code, and found the news page file name appearing in the <title> tag below within the feed (XML source code).
     <title>FileNamePage5</title>
    and the original news title 'This is the title of page5' was appearing in the <description> tag in the feed (XML sorce code)
     <description><![CDATA[<div> ... This is the title of page5... </div>]]></description>.
    This would make it hard to extract ONLY the original news title (This is the title of page5) out of the feed via XSLT, because the data within the <description> tag in the feed also contains data from all other selected columns defined via the RSS
    Setting. If I did not select the 'Title' column via RSS Setting above, I even could not find the orinigal news title in the RSS feed.
    This is happening for all other news pages in the system 'Pages' library. Is this what SharePoint 2010 normally does? or is something wrong with the settings for site or the system 'Pages' library?
    How to display ONLY the original news title (This is the title of page5) in the <title> tag in the RSS feed. Please Help me to resolve this issue.
    谢亚军@Sydney

    Hi,
    According to your description, my understanding is that you want to display the value in Title column of Pages library in title tag in RSS Feed in SharePoint.
    I tested the same scenario per your post, the title tag in RSS Feed displayed the value of Name column in libraries and displayed the value of Title column in lists.
    It is by design and there is no OOB way to change the default column mapping in RSS Feed.
    I recommend to customize your own RSS Feed style sheet to make the title displays the value of Title column in SharePoint libraries.
    Here is a link about customizing the RSS Feed for document library for you to take a look:
    http://markeev.com/Articles/sharepoint-blog-rss.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Unable to create a page which deleted from pages library

    hi,
    I want to create a page from my site collec's pages library. i have already created the page say one.aspx and i have deleted the same. and  again    i am trying to create the same page one.aspx. but i am getting 
    serevr error  in appln.

    Paul,
    thanks for your  reply.
    i have confirmed from the recycle bin also. 
    even i hav tested it with a console appln also : here is the code :
    namespace TestingConsoleApplication1
    public class myProgram
    public static void Main(string[] args)
    myProgram objmyprog = new myProgram();
    objmyprog.deleteonepage();
    public void deleteonepage()
    PublishingWeb publishingWeb = null;
    using (SPSite oosite = new SPSite("http://srvr1/sites/OPTC"))
    using (SPWeb ooweb = oosite.OpenWeb())
    if (PublishingWeb.IsPublishingWeb(ooweb))
    publishingWeb = PublishingWeb.GetPublishingWeb(ooweb);
    // get the pages collection
    PublishingPageCollection pages = publishingWeb.GetPublishingPages();
    if (pages[publishingWeb.Url + "/Pages/EditMetadataPage.aspx"] != null)
    // page exists so delete it
    PublishingPage page = pages[publishingWeb.Url + "/Pages/EditMetadataPage.aspx"];
    page.ListItem.Delete();
    can you pls help.
    scrn shot is attached.

  • How to create a new aspx page in Pages library using Elements.xml without including any aspx page layout in my feature?

    Is it possible to have the elements.xml file create a page in the Pages (or SitePages) library without actually including any sort of page layout or aspx artifact in the feature?
    I see no reason to add a mywebpartlayout.aspx to my feature just so I can deploy a Home.aspx based on the BlankWebPart.aspx page layout. 
    I'm sure there is something obvious I am missing with regards to the Elements schema (which is why I've almost given up on using it completely and just gone to pure C#) but
    I would really like to do this kind of simple stuff with declarations if at all possible. Must less code to write, debug, test and maintain.

    I don't see how my question keeps getting misunderstood. This seems to be very clear and clearly not answered: "Is it possible to have the Elements.xml file
    create a page in the Pages (or SitePages) library without actually including any sort of page layout or aspx artifact in the feature?"
    I can't be more clear than "without including ANY sort of page layout or aspx artifact (meaning anything ending in aspx) IN THE FEATURE". I am not capitalizing to yell,
    only to emphasize. Your disagreement is based on a link that shows ADDING AN ARTIFACT (the dummy MyPage.aspx) to a feature. I am asking if it
    is possible (again, I cannot be more clear) to just use an Elements.xml file to instruct SharePoint to make a new item in a Pages or SitePages library. 
    Your definition of page includes Page Layouts and what you call Web Part Pages (again, a type of page layout + data in a site pages list that says what webparts
    to display). Page Layouts are clearly NOT items stored inside of a SitePages or Publishing Pages library. Those libraries are just lists whose records
    define the parts to show inside a specific layout.
    When I refer to a Page I mean an entry into a pages (site pages/publishing pages) list. If I wanted to deploy a page layout then, quite obviously, I would need
    to include it into my solution. I think maybe you are assuming that I do not know the difference. I do. The question is, can an Elements file alone be enough to instruct SharePoint to make a new entry into a Pages or SitePages library. 
    Now, your second link does show how to reference an existing Page Layout. Thank you for that. It is excellent. But this still leaves the problem of having to
    add some sort of aspx page into the solution. Let me try to explain why I feel this SHOULD BE unnecessary: The aspx file will not have anything on it if I am referring to the ~sitecollections/.../BlankWebPartPage.aspx layout.
    All web parts and content that should appear on the new page can be described IN the Elements.xml file. Any sort of aspx file is unnecessary, it seems to me.
    So, if I am referencing a ~sitecollections/.../BlankWebPartPage.aspx page layout and specifying the web parts to add to the page, why should there be a
    requirement to have some aspx file within the feature? That's what I am trying to figure out.
    I am not asking for source code as proof. I am asking for an Elements file that does NOT reference anything AT ALL inside the Visual Studio solution for reasons I just described.
    If you do not know how to do it then perhaps it cannot be done but I would like the question to stay unanswered for a little while until someone can demonstrate either a) it CAN
    be done or b) a link to some Microsoft document stating that it is MANDATORY to have a physical element within the feature that gets copied to the environment.
    I think it is important to understand what is being asked before insisting you have answered. It is clear from your posts that you have not fully understood the question yet but
    I am hoping this posts makes it clear. I really appreciate you taking the time to respond, though. You seem to be the only one up for the challenge! :)

  • Title of Page from Pages library not appearing as expected from custom pagelayouts VS solution

    hi,
    i have created a custom web page from pages library using custom page layouts library with the help of a wsp.
    here is my  sample page.
    now my issue is,  when i go to the page / the title of the page is not displaying correctly.
    as per my requirement the ttile  of the page   should be  APPROVE/REJECT Doc
    which is mentioned in the  <title>APPROVE/REJECT Doc</title></head>.
    and in my VS 2012 pagelayouts solution i have added this page name approve1.aspx.
    hence  i am getting the Page title from the pages lib as approve1 .
    can someone pls help what should i do to get this title issue  resolved.
    i cant rename the page again from the solution.i  would like to see the title of this page takes from <title>APPROVE/REJECT Doc</title></head> .
    <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %>
    <%@ Reference VirtualPath="~masterurl/custom.master" %><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    %>
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:PublishingContact msdt:dt="string">47</mso:PublishingContact>
    <mso:PublishingIsFurlPage msdt:dt="string">0</mso:PublishingIsFurlPage>
    <mso:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_PublishingContact msdt:dt="string">hellooo1</mso:display_urn_x003a_schemas-microsoft-com_x003a_office_x003a_office_x0023_PublishingContact>
    <mso:PublishingContactPicture msdt:dt="string"></mso:PublishingContactPicture>
    <mso:RobotsNoIndex msdt:dt="string">0</mso:RobotsNoIndex>
    <mso:PublishingContactName msdt:dt="string"></mso:PublishingContactName>
    <mso:ContentTypeId msdt:dt="string">0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390076F7B5D03DD146D699D042E1C5D76EF70034D563D3D2DE07429FB160DADE75B460</mso:ContentTypeId>
    <mso:PublishingPageLayoutName msdt:dt="string">myPage.aspx</mso:PublishingPageLayoutName>
    <mso:Comments msdt:dt="string"></mso:Comments>
    <mso:PublishingContactEmail msdt:dt="string"></mso:PublishingContactEmail>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    <title>APPROVE/REJECT Doc</title></head>

    Hi,
    As there is no complete code at hand, you can take the snippet below about updating the name of a page in a page library as a reference:
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
    Add-PSSnapin Microsoft.SharePoint.PowerShell;
    $web = Get-SPWeb http://yoursite
    $list = $web.Lists["Site Pages"]
    $listItems = $list.Items
    foreach($item in $listItems)
    if ($item.Name -eq "Page1.aspx")
    $file = $item.File
    $file.MoveTo($item.ParentList.RootFolder.Url + "/" + "Page1_changed.aspx")
    $file.Update()
    #dispose of web
    $web.dispose();
    Best regards
    Patrick Liang
    TechNet Community Support

  • Does anyone have URL replacement working for catalog generated from wiki pages library

    Hi everyone,
    I have created a catalog from a wiki library which surfaces news/event/announcement articles to a publishing site (with make URLs relative to this site selected).  This works well after modifying the item page and specifying the content as HTML regarding
    the functioning of category/item pages.
    The only issue which remains is that hyperlinks between wiki pages are not replaced in the target site (they always point to the wiki pages within the authoring site collection rather than to their catalog counterparts in the publishing site).  It is
    my understanding that with publishing pages from a pages library these links are replaced to point to other items in the catalog connected site rather than the source.
    Is this just by design (only working for publishing pages rather than wiki pages), or does anyone have this replacement working?
    If this does not work it kind of defeats the purpose of the catalog here and I might as well give everyone access to the authoring library and just use a CSWP in the publishing site to redirect to the authoring wikis.  Not terribly nice from a layout,
    navigational or conceptual standpoint though.

    Just to add a bit more info to this... looking at the coreclient.log file you can plainly see that the page view took 50367ms to complete.... if anyone has any ideas, it would be greatly appreciated.
    Started GET "/wiki/pages/V6C291y8z/price_lists.html" for 192.168.0.100 at Fri Nov 04 13:48:49 -0500 2011
      Processing by PagesController#show as HTML
      Parameters: {"title"=>"Production_Intercom.html", "id"=>"V6C291y8z"}
    Rendered cc/_banner_link.html.erb (0.2ms)
    Rendered cc/_banner_link.html.erb (0.2ms)
    Rendered cc/_banner_link.html.erb (0.2ms)
    Rendered cc/_banner.html.erb (1.8ms)
    get_timezone_offset_from_request: -18000
    time: Wed Oct 26 12:52:17 -0500 2011
    time (client timezone): Wed Oct 26 12:52:17 -0500 2011
    Rendered cc/_entity_header.html.erb (2.5ms)
    Rendered cc/_wikieditor.html.erb (0.1ms)
    Rendered sidebars/_tags.html.erb (59.0ms)
    Rendered cc/_related_item.html.erb (0.0ms)
    Rendered sidebars/_related.html.erb (0.3ms)
    Rendered cc/_comment.html.erb (0.0ms)
    Rendered sidebars/_comments.html.erb (0.4ms)
    Rendered sidebars/_updates.html.erb (0.1ms)
    Rendered sidebars/_settings.html.erb (0.2ms)
    Rendered cc/_sidebar_section.html.erb (61.2ms)
    Rendered cc/_sidebar.html.erb (61.5ms)
    Rendered pages/show.html.erb within layouts/application (50366.0ms)
    Completed 200 OK in 261847ms (Views: 50367.1ms)

  • Site page not showing

    My Iweb is from 2008 2.0.4. All of the pages work, except for the "site" which blank. I have tried to "trash" my iWeb and download a new one but it is not letting me do so. Any suggestions on how to bring up the "site" page?
    Thanks.

    Welcome to the Apple Discussions. By site do you mean this? It's what you see when you click on the site folder in iWeb.
    Click to view full size
    Try the following:
    1 - close iWeb.
    2 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your User/Library/Preferences folder.
    3 - go to your User/Library/Caches/com.apple.iWeb folder and delete the contents.
    4 - reboot.
    5 - launch iWeb and see if there's any improvement.
    OT

  • Custom edit form for my Wiki Page library with only "Page Name" field included

    I want to create a new custom edit form for my Wiki page library, and to only allow users to edit the Page name inside the edit form. now i created a new Edit form using SharePoint Designer , and i select the Enterprisewiki content type for it , which generates
    the following markup :-
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListFormPageTitle runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <span class="die">
    <SharePoint:ListProperty Property="LinkTitle" runat="server" id="ID_LinkTitle"/>
    </span>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    <div style="padding-left:5px">
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    <table class="ms-core-tableNoSpace" id="onetIDListForm">
    <tr>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" EnableOriginalValue="False" DisplayName="Customer Service KB" ViewFlag="1048584" ViewContentTypeId="" Default="FALSE" ListUrl="" ListDisplayName="" ListName="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" ListId="6a6ece84-4d39-48e2-bd6a-c20b2ac6355b" PageType="PAGE_EDITFORM" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" NoDefaultStyle="TRUE" InitialAsyncDataFetch="False" Title="Customer Service KB" FrameType="None" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_f1c88e12_e91d_4300_91f2_62f0bd7825fb" ChromeType="None" ExportMode="All" __MarkupType="vsattributemarkup" __WebPartId="{F1C88E12-E91D-4300-91F2-62F0BD7825FB}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" SelectCommand="&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Enterprise Wiki Page&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True"><SelectParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <div>
    <span id="part1">
    <table border="0" width="100%">
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table>
    </span>
    <SharePoint:AttachmentUpload runat="server" ControlMode="Edit"/>
    <SharePoint:ItemHiddenVersion runat="server" ControlMode="Edit"/>
    </div>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton1"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton1"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:FormToolBar runat="server" ControlMode="Edit"/>
    <SharePoint:ItemValidationFailedMessage runat="server" ControlMode="Edit"/>
    </td>
    </tr>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowedit"/>
    </xsl:for-each>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td class="ms-descriptiontext" nowrap="nowrap">
    <SharePoint:CreatedModifiedInfo ControlMode="Edit" runat="server"/>
    </td>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </xsl:template>
    <xsl:template name="dvt_1.rowedit">
    <xsl:param name="Pos" select="position()"/>
    <tr>
    <td>
    <table border="0" cellspacing="0" width="100%">
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Title (Display In Search)</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Standard<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="Edit" FieldName="Standard" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Standard')}"/>
    <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Standard" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Document Type<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" FieldName="Document_x0020_Type" __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Document_x0020_Type')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Document_x0020_Type" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Departments<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="Edit" FieldName="Departments" __designer:bind="{ddwrt:DataBind('u',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Departments')}"/>
    <SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Departments" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Hide physical URLs from search</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="Edit" FieldName="PublishingIsFurlPage" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingIsFurlPage')}"/>
    <SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="PublishingIsFurlPage" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Page Content</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="Edit" FieldName="PublishingPageContent" __designer:bind="{ddwrt:DataBind('u',concat('ff6',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingPageContent')}"/>
    <SharePoint:FieldDescription runat="server" id="ff6description{$Pos}" FieldName="PublishingPageContent" ControlMode="Edit"/>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="Edit" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="Edit" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('u','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <tr>
    <td colspan="99" class="ms-vb">
    <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet> </Xsl>
    <DataFields>
    </DataFields>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0"/>
    <ParameterBinding Name="weburl" Location="None" DefaultValue="http://sharepointdev:12341/sites/wiki1"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </td>
    </tr>
    </table>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    </div>
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
    <SharePoint:CssRegistration Name="forms.css" runat="server"/>
    </ContentTemplate></SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
    <table cellpadding="0" height="100%" width="100%" cellspacing="0">
    <tr><td class="ms-areaseparatorleft"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
    </table>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <script type="text/javascript" id="onetidPageTitleAreaFrameScript">
    if (document.getElementById("onetidPageTitleAreaFrame") != null)
    document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <SharePoint:StyleBlock runat="server">
    .ms-bodyareaframe {
    padding: 8px;
    border: none;
    </SharePoint:StyleBlock>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
    <div class='ms-areaseparatorleft'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
    so from the above  markup  the name field is not part of the edit form,, i think this is because the Name is part of the Document content type and not part of the enterprisewiki content type .. so is there a way to add the name field to the edit
    form ?.
    second question, the edit form will show all the content type fields such as ; standard, document type, department , title (display in search), etc   so what is the best way to remove these fields from the custom edit form ?

    Hello John,
    This can only be done by adding VBScript to the form. It would basically be:
    Sub Item_Open() 
    Item.GetInspector.SetCurrentFormPage "P.2"
    End Sub
    ... where "P.2" would be what you named the page you want to display first.

  • Proprogating changes to a list to all site pages

    Here is my issue:
    Currently running a Project 2010 Sharepoint site and my Project Management lead has added a column to the Deliverables list on the home page.  He is wanting to have this new column added to all of the Deliverable lists on all of the current site pages,
    along with any new site pages that are created.  He has also edited the New Item and Edit item form in InfoPath to reflect this new column and would like it on all of the site pages as well.
    I have already changed the column he created to a site column, but how do I propagate this change to all of my current and future site pages?

    Hi,
    The way we import WSPs has got changed in VS2010, its tricky though.
    here are links for your reference -
    Walkthrough: Import Items from an Existing SharePoint Site
    http://msdn.microsoft.com/en-us/library/ee231603.aspx
    Importing SharePoint 2010 Site Definitions in Visual Studio 2010
    http://msdn.microsoft.com/en-us/library/gg512104(v=office.14).aspx
    http://ahmedmadany.wordpress.com/2012/12/30/importing-sharepoint-solution-package-wsp-into-visual-studio-2010/
    and here is a video on How To -http://channel9.msdn.com/blogs/funkyonex/importing-sharepoint-solution-packages-wsp-into-visual-studio-2010
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • What is virtual file system in sharepoint, where are the site pages stored?

    I came across this paragraph in Inside Microsoft SharePoint 2010; page 126 :-
    When SharePoint Foundation provisions the Proposals document library,it creates a folder named Proposals at the root of the site and then it creates a child folder named Forms.
    Inside the Forms folder, it creates a set of site pages with names such as DispForm.aspx, EditForm.aspx, AllItems.aspx, and Upload.aspx. The reason that SharePoint Foundation creates site pages inside the Forms folder for each
    new list and document library is that these site pages will provide users with the forms they will use to add and manage content.
    My question is that:-
    1) What us the root of the site means? 
    2) Are the pages for edit/add/allitems created in filesystem OR in the content database?
    3)Suppose we create new sitepages, then where are they stored? In filesystem or in content db?

    Hi,
    For All above queries the data and site pages are stored in content database
    Root folder: A folder created for the document library under the web (sub site) and another folder created as child folder named Forms. Site pages are created in SharePoint content database
    SitePages(Add/display/edit): These pages are created in SharePoint content database
    Note: The SharePoint will not create any physical aspx page OR folder in the file system while creating document library.
    Hope this will help you.
    Senthilrajan Kaliyaperumal
    But the book mentions that:-
    When SharePoint Foundation provisions the Proposals document library,it
    creates a folder named Proposals at the root of the site and then it creates a child folder named Forms. 
    Is
    this wrong? Are the folders created in filesystem or content db? If the files are not supposed to go into the filesystem, then why are the folders created?

Maybe you are looking for