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! :)

Similar Messages

  • How to create a new file (doc, ppt or xls) using the secondary click??

    Is there any way to create a new file(text, doc, docx, ppt, pptx, xls or xlsx) using the the secondary click (on the desktop or any folder) just like creating a new folder using secondary click! Please do let me know!

    No. You need the Office applications to create them or another application capable of creating those types of files or at least saving files in those formats.

  • Creating a new folder in a SharePoint library using C# Windows Application.

    I have tried to create a folder within a SharePoint document library. The coding is as follows.
    Text Box Name: txtNewFolderName
    Button Name : btnCreateNewFolder
    private void btnCreateNewFolder_Click(object sender, EventArgs e)
    //String parameters for site URL and site name
    const string siteUrl = "http://thekingsbury/";
    const string siteName = "/SiteDirectory/thekingsbury/";
    //Freeze UI
    Cursor = Cursors.WaitCursor;
    btnCreateNewFolder.Enabled = false;
    //Use SPSite constructor to assign site collection based on top-level URL
    SPSite siteCollection = new SPSite(siteUrl);
    //Assign target site (SPWeb instance) based on site name
    SPWeb site = siteCollection.AllWebs[siteName];
    //Create an instance of SPDocumentLibrary based on the named doc library list
    SPDocumentLibrary docLibrary = (SPDocumentLibrary)site.Lists["Test Library"];
    //Create instance of SPFolderCollection and add a named folder based on forms input,
    //then update library to reflect added folder
    SPFolderCollection myFolders = site.Folders;
    myFolders.Add("http://thekingsbury/Test%20Library/" + txtNewFolderName.Text + "/");
    docLibrary.Update();
    //UI clean-up
    Cursor = Cursors.Default;
    btnCreateNewFolder.Enabled = true;
    Site URL :
    http://thekingsbury/
    Site Name: thekingsbury
    Document Library  : Test Library
    My problem is when I click the button it gives an error as the following.
    The Web application at http://thekingsbury/ could not be found.
    Verify that you have typed the URL correctly.
    If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
    The error shows at the following statement.
    "SPSite siteCollection = new SPSite(siteUrl);"
    I created both Windows & Web solutions and the result was the same.
    Note: I have add the reference to the SharePoint using the Microsoft.SharePoint.dll file. And used the "using Microsoft.SharePoint;" statement.
    Please can someone help me on this matter.It's a real paint to me.

    The complete solution using an InfoPath 2010 form is as the below.
    using Microsoft.Office.InfoPath;
    using System;
    using System.Xml;
    using System.Xml.XPath;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Client;
    using Microsoft.SharePoint.Linq;
    namespace Create_Folder_In_SharePoint_Library
    public partial class FormCode
    public void InternalStartup()
    ((ButtonEvent)EventManager.ControlEvents["btnCreateFolder"]).Clicked += new ClickedEventHandler(btnCreateFolder_Clicked);
    public void btnCreateFolder_Clicked(object sender, ClickedEventArgs e)
    SPSite mySite = new SPSite("Http://thekingsbury/");
    SPWeb myWeb = mySite.OpenWeb();
    //Code to retreive the new library.
    XPathNavigator xLibraryName = MainDataSource.CreateNavigator();
    String NewLibraryName = xLibraryName.SelectSingleNode("/my:myFields/my:LibraryName", NamespaceManager).Value;
    //Code to retreive the library description.
    XPathNavigator xLibraryDesc = MainDataSource.CreateNavigator();
    String NewLibDesc = xLibraryDesc.SelectSingleNode("/my:myFields/my:LibraryDescription", NamespaceManager).Value;
    //Code to retreive the new folder name.
    XPathNavigator xFolderName = MainDataSource.CreateNavigator();
    String NewFolderName = xFolderName.SelectSingleNode("/my:myFields/my:FolderName", NamespaceManager).Value;
    //Creating the new library.
    myWeb.Lists.Add(NewLibraryName, NewLibDesc, SPListTemplateType.DocumentLibrary);
    myWeb.Update();
    //Creating the new folder within the new library.
    SPDocumentLibrary newDocLibrary = (SPDocumentLibrary)myWeb.Lists[NewLibraryName];
    SPFolderCollection newFolders = myWeb.Folders;
    newFolders.Add("http://thekingsbury/" + NewLibraryName + "/" + NewFolderName + "/");
    newDocLibrary.Update();
    I think everyone can use this.
     When you are generating a folder always try to avoid reserved characters  : ; # $ % ^ a and suchlike.

  • How to create a new doc file Microsoft Word file using POI

    I have searched on the guide of POI's HWPF package for writing a new file but i couldnt find that pls help..

    hi,
    related link
    http://forum.java.sun.com/thread.jspa?threadID=670895&messageID=3947161

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • Create a new material as a credit note uses code

    Dear Experts,
    May I ask you how to create a new material FOR a credit note uses code?
    wilson
    Edited by: wilson hong on Apr 16, 2009 8:22 AM

    Hi,
    I need to create that material for create credit note, the code when I am create a new credit note, select that specific material code, account payment transaction will be automatically to corresponds to the G/L Account, is it same as general procedure of create new material code, but this is not products.
    wilson

  • How To Create The New VO in Standered Page?

    Hi Gurus,
    Pl z help me how to create the new Custom VO in slandered page,and how to attach that VO in custom RN in all are slandered page only.
    Regards,
    Srini

    Hi Sara,
    <i>1. Could you please tell me how to create the new webservice in XI?</i>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    <i>2. What tools we have to use to create it.?</i>
    /people/community.user/blog/2006/09/19/xi-webservice-studio--a-plain-jane-soap-tool
    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c
    Altova is also a good option
    <i>3. How to send the SOAP request to XI?</i>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    SAP Note 856597
    An Add-on
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    Regards,
    Prateek

  • How do I create a new calendar for the current year, using last years calendar's birthday's/photos and comments from the lower pages?

    Each year for the past 5 years I make a family calendar and send copies to all he family members around the globe.  I hate that I have to recreate all the birthdays and special occasions from scratch, and re-drag all the photos onto these dates, in the lower half of the page of each month on the new calendar.  How can I create a new calendar for the current year and port all of these photos/comments into the new calendar from last years calendar, to save having to redo all this work!!  I am not talking about the upper half page of the photos only...I am referring to the calendar page of each month.
    Thanks in advance. 
    Colin

    Welcome to the Apple Discussions. Open iWeb so you see your original site in the left hand pane. Use the File->New Site menu option to create a new site. Give it the name you want.
    Now select a page in your original site and type Command+D. That will duplicate the page. Drag the duplicate page down to the new site and rename it as needed. Do that for the other pages you need in the original site.
    OT

  • How to create a new tag in page properties in the sidekick of geometrrix page

    how to create a new tag in page properties in the sidekick of geometrrix pagesame as basic, advanced, blue print??

    Hi prachi,
        Is it tag OR Tab ? Seems like you are looking for Tab. Look at [1] & overlay to custamize per your need. Or define at your page component.
        [1]   /libs/foundation/components/page/dialog/items/tabs/items
    Thanks,
    Sham

  • How to create a new template for pages in iPad?

    How to create a new template for pages in iPad?

    In spite of the latest updates Pages for iPad does not support:
    1) User templates
    2) Headers
    3) Footers
    4) Page numbers
    and it is not compatible with Pages for OSX, a document cannot be edited alternatively on Mac and iPad without destroying headers and footers.
    - The Word export is far from perfect
    - Does not really support Page Layout mode (you cannot duplicate a page at least)
    - Does not have a multi-page overview
    - The spelling support of iOS and OSX is at the level of Apple Maps except 4-5 languages.
    - It takes a long time until it starts
    INSTEAD, according to the latest updates:
    - It can do change tracking
    - Lock and unlock objects
    - Add reflections to shapes
    Dear Apple, please understand:
    - We like iPad and we wish to use it for real work.
    - We wish to have user templates, headers, footers and page numbers.
    - We do not expect all the features of Pages for OSX, but we do expect real compatibility.
    - We do not wish to switch back to Word for Windows unless you force us.
    Please try to concentrate on real development not on unimportant changes like in the latest dissapointing update.

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • How to create a new domain in BPEL console

    Hi
    Am new to BPEL can some one let me know how to create domain in BPEL console
    Thanks
    Baji

    Hi.
    1 - You go to the BPEL Admin page:
    http://host:port/BPELAdmin
    2 - click on tab BPEL Domains
    3 - Click Create new BPEL domain
    4 - In Domain Id field, you place the name of your domain. Click Create.
    Denis

  • How to create a new user over HTTPS

    Hi. I have set up conf.xml and web.xml so that when the user accesses a page in the secure area of the website, then they are taken to a login page where they enter their username and password and the form calls j_security_check on the server. All this happens over SSL as the transport garauntee is CONFIDENTIAL. But how to create a new user over HTTPS? If I have a create new account pages in the secure area of the website, then the only way the user can access these pages is by logging in, but they don't have a login as yet.

    An update. It looks that if the auth-constraint section (which lists the roles that can access this area) is missing, then everyone can access the region and it is over HTTPS. So far, the following seems to be working
       <security-constraint>
          <display-name>View My Account</display-name>
          <web-resource-collection>
             <web-resource-name>My Account Area</web-resource-name>
             <url-pattern>/myaccount/*</url-pattern>
          </web-resource-collection>
          <auth-constraint>
             <role-name>myrole</role-name>
          </auth-constraint>
          <user-data-constraint>
             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
          </user-data-constraint>
       </security-constraint>
       <login-config>
          <auth-method>FORM</auth-method>
          <realm-name>Form-Based Authentication Area</realm-name>
          <form-login-config>
             <form-login-page>/newaccount/login.html</form-login-page>
             <form-error-page>/newaccount/loginerr.html</form-error-page>
          </form-login-config>
       </login-config>
       <security-role>
          <role-name>myrole</role-name>
       </security-role>
       <security-constraint>
          <display-name>Create New Account</display-name>
          <web-resource-collection>
             <web-resource-name>New Account Area</web-resource-name>
             <url-pattern>/newaccount/*</url-pattern>
          </web-resource-collection>
          <user-data-constraint>
             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
          </user-data-constraint>
       </security-constraint>

  • How to create a new folder within the video folder in media

    Hi, I'm trying to figure out how to create a new folder within the video folder in media. I can easily create new folders within the pictures folder but not in videos.....Why??? Thanks in advance for your help.
    Message Edited by dany_s on 06-25-2009 03:58 PM
    Solved!
    Go to Solution.

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to create the new webservice in XI?

    Hi All,
    1. Could you please tell me how to create the new webservice in XI?
    2. What tools we have to use to create it.?
    3. How to send the SOAP request to XI?
    Regards
    Sara

    Hi Sara,
    <i>1. Could you please tell me how to create the new webservice in XI?</i>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    <i>2. What tools we have to use to create it.?</i>
    /people/community.user/blog/2006/09/19/xi-webservice-studio--a-plain-jane-soap-tool
    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c
    Altova is also a good option
    <i>3. How to send the SOAP request to XI?</i>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
    SAP Note 856597
    An Add-on
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    Regards,
    Prateek

Maybe you are looking for