Customise an ASPX in the layouts directory that is not visible in SharePoint Designer

Hi
I want to be able to deploy a customised ASPX page in a Visual Studio WSP solution to my site. There is a file named CopySharedPage.aspx which is used for the dialog that pops up when you edit a page that has multiple friendly URLs. Our users get confused
by this and several of them have clicked the option to 'Edit page for single URL (my page url)' which does  this "Create a copy of the page for the URL you were just on to edit it
independent of other URLs." We don't want them doing that. In our site we often have multiple URLs for marketing reasons, but only want to maintain the one physical page of content. I can edit the CopySharedPage.aspx file in
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS directly on the server and comment out or delete the section that creates the link to Edit page for single URL (which consequently creates a copy of the page).
But I would prefer to do this as part of my VS solution to make deployment easier. In my solution I have branding files such as master page, layouts and search assets such as a custom refiner and modified Item_Default.html. All of those items can be found
in SharePoint Designer and they can also be replaced by having a module in VS with those files and with entries to place them using elements.xml in the module.
I tried to do the same with the CopySharedPage.aspx but it doesn't overwrite the one on the server. This is my elements.xml for the module:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="LayoutCustomisations" Url="_catalogs/layouts">
<!-- This page is the edit dialog when a page has multiple friendly URLs associated with it - we are hiding the option to create a cpy for editing that single URL -->
<File Path="LayoutCustomisations\CopySharedPage.aspx" Url="CopySharedPage.aspx" ReplaceContent="True">
</File>
</Module>
</Elements>
I end up getting a CopySharedPage.aspx created at
C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\FEATURES\MyWebsite_Site\LayoutCustomisations\CopySharedPage.aspx but it isn't used. The original one is still there in the 15\TEMPLATE\LAYOUTS directory and being used.
Is there something I am doing wrong or do I have to do this a completely different way? Maybe it's not a supported customisation?

There's two ways you can deploy your aspx (layout) files. One is deploy in _Layouts folder (which basically copy the file in (c:\program files\common files\microsoft shared\web server extensions\15\template\layouts). To copy file in that place, you don't
need module, just use SharePoint mapped folder.
Another way is to upload the layout folder in SharePoint library. But _catalogs is not the right place to upload your file (_catalogs doesn't have any subfolder named 'layouts'). You can upload your file in 'Pages' library or 'site pages' library in the
current web.
I'm not quite sure though (sorry I didn't get what the problem is but just guessed you are trying to get your aspx page in SharePoint designer, not sure why) why you need to upload the file in pages/site pages library instead of '_layouts' folder. 
Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com

Similar Messages

  • Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory.

    HI
    i restored a sharepoint web 80 application in our test domain
    and after when i browse the new web application 
    it says 
    Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file exists under the layouts directory. 
    adil

    Hi  adil,
    According to your description, my understanding is that you encountered the error “Cannot make a cache safe URL for "1025/styles/Themable/corev4.css", file not found. Please verify that the file
    exists under the layouts directory.” .
    The issue happens in
    We have customized master page
    In the master page, we use path the script/style file like this: <SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/coe/mainCOE.css%>"
    runat="server"/>
    While using the dynamic path in a multiple languages enabled site, language Id(1033 etc) will be added to the path automatically. That cause the file to be not found.
    To solve the issue, please download  the Arabic language pack http://www.microsoft.com/en-us/download/details.aspx?id=3411 ,
    install it on  your SharePoint and refresh your browser.
    Reference:
    http://sharepoint-community.net/profiles/blogs/cannot-make-a-cache-safe-url-for-1036-sytles-themable-corev4-css
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Toshiba L755 is the only one that will not PXE BOOT

    I have a few host on my network which it has VMWare 10 installed, successively performed deployment into those machines(Hosts and created VM"s). Now, I do have also a Toshiba L755-S5258 that will not complete the process,  it does not give any
    errors. The following is the messages it gives.
    Client MAC ADDR: xx xx xx xx xx xx       GUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX
    Client IP:XXX.XXX.X.XX        MASK:  XXX.XXX.XXX.x                  DHCP IP:   XXX.XXX.X.X
    Gateway IP: XXX.XXX.X.X
    Downloaded WDSNBP...
    Press F12 for network service boot
    Windows Deployment services: PXE boot Aborted.
    PXE-MOF: Exiting Intel PXE ROM
    This si the only unit that does not follow through with the deployment
    Note that I've deleted other machines that I successively  deployed to from the Known Computers on Active Directory User and Computers, with not good results
    Please any one help me decipher this headache 

    Hi,
    Are your using the WDS for the Windows deploy? A network boot program (NBP) is the first file that is downloaded and executed as part of the network boot process and it controls
    the beginning of the boot experience (for example, whether or not the user must press F12 to initiate a network boot). NBPs are specific to both the architecture and firmware of the client. You must accounting the screen press F12 to allow the system boot
    from the WDS. The VMware® workstation PXE booting issue please ask your software vendor.
    The related KB:
    Managing Network Boot Programs
    http://technet.microsoft.com/en-us/library/cc732351(WS.10).aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How can I get a count of files in a directory that does not include subfolders?

    Information [Comand I] gives me an "items" number that includes subfolders; however, Box gives me a number that excludes subfolders and includes only files. I am trying to double check that I have migrated everything from a local directory to a Box; thus, I would like a way to a count of just the number of files in a local directory that does not include subfolders but rather is limited to files. This has been surprisingly hard to find.
    Thanks,
    Stu

    Sort the contents of the folder by Kind. While holding down the Shift key  click on the first and last file and start to drag them.  The number of the files being dragged will be displayed in a red circle.
    Not elegant but works.

  • Every time I open Iphoto I get the following message:  "A photo has been found in the iPhoto library that was not imported.  Do you want to import it?  Yes or No"  Any suggestions?

    Every time I open Iphoto I get the following message:  "A photo has been found in the Iphoto library that was not imported.  Does anyone have any suggestions?

    Quit iPhoto and to to the iPhoto library (by default in your pictures folder) - right click (control click) on it and select show package contents - find the folder named import (on importing) and drag it to the desktop - DO NOT MAKE ANY OTHER CHANGES - launch iPhoto and you will be fine.
    Open the import(ing) folder and if there is nothing in it that you need move it to the trash and empty the trash
    LN

  • Everytime I open iphoto, my computer tells me A photo has been found in the iPhoto Library that was not imported.  Would you like to import it.  no matter what I do, iphoto puts the pic in recovered files.  How do I fix this?

    Everytime I open iphoto, my computer tells me,  A photo has been found in the iPhoto Library that was not imported.  Would you like to import it.  If I import it, a message comes up Unreadable file, the following file could not be imported. them it tells me where the file is and it cannot be opened.  If I do not import, then it says,The photo has been placed in the folder /Users/patrick*******/Pictures/iPhoto Library Recovered Photos_4.  It will just keep adding to recvovered photos.  This drives me crazy!!!!!!!  How do I fix this?

    I had this problem some months ago and the following solution from Terrence Delvin put things right:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.
    However, since connecting a memory stick to my computer, I now have the same problem again.  This time there is no folder called 'Import' or 'Importing' so what should I do?

  • Whenever I try to open iPhoto, a message comes up saying that 148 photos have been found in the iPhoto Library that have not been imported. It asks me if I want to import them and I say NO but then it places them in a recovered photo folder. I keep deleti

    Whenever I try to open iPhoto, a message comes up saying that 148 photos have been found in the iPhoto Library that have not been imported. It asks me if I want to import them and I say NO but then it places them in a recovered photo folder. I keep deleting the empty recovered photo files but it just keeps asking me every time I go to open iPhoto! I'd love to just get rid of the "found" photos (I can't open them anyway!)
    How do I get rid of them so that I can just open iPhoto straight up without this?
    Linda

    Open your iPhoto Library package with the Finder.
    Click to view full size
    look for a folder titled Import or Importing and move it to the Desktop. Launch iPhoto to see if the message goes away.  If there is no message  check the contents of the Import folder to see if you want to keep any of those image files (usually they have not been imported into iPhoto). If you want to keep them then drag the folder into the open iPhoto window to import.
    OT

  • A photo found in the iPhoto library that was not imported

    Every time I open iPhoto, I receive a message saying "A photo has been found in the iPhoto library that was not imported. Would you like to import it?" If I select yes, a box pops up saying "Unreadable file. The file was not imported, the file was missing." and then the photo's path. If I select no, the photo gets placed in a recovery file. I can see the photo in the recovery file, it is a photo that I locked (and maybe marked hidden - if you can even do both). I've tried to go into my iPhoto and unhide photos so that I can unlock the original...I've also tried unlocking the photo in the recovered file. I've tried deleting the photo in the recovery file as well...I can unlock it in Finder and delete it, but (with my limited knowledge of computers) I've determined that I must only be deleting a copy. Where is the original...I'd like to delete it. I don't even need this pic anymore and it is SERIOUSLY IRRITATING ME every time I open iPhoto. And that's often, as I'm always taking pics of my little one. TIA!!!!! Sara

    Sara
    Welcome to the Apple Discussions.
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    Regards
    TD

  • IPhoto, "A photo has been found in the iPhoto Library that was not imported

    A photo has been found in the iPhoto Library that was not imported. I click no or yes and I receive a message... The photo has been placed in the folder /Users//Pictures/iPhoto Library Recovered Photos_11. what do i need to do to stop this???

    Welcome to the Apple Discussions.
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.
    Regards
    TD

  • A photo has been found in the iphoto library that has not been imported???

    When i open iphoto i get a message saying "a photo has been found in the iphoto library that has not been imported, would you like to import it?" I have tried what everyone is saying to do, but when i look under show package contents there is no import folder to move. only a folder that says contents and i've looked all through that, still no import folder. Even though i click no i do not want the photo imported it still is stored on my external hard drive and every so often i have to go delete TONS of photos and when you click on the photo it doesn't even actually show up as anything.

    but when i look under show package contents there is no import folder to move. only a folder that says contents
    You're looking at the iPhoto.app package. Those instructions are for the iPhoto Library package. That's in your Pictures Folder.

  • HT1222 I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!!!!!!

    I just installed this update and now I cannot access "Mail" at all.  I tried reinstalling the program, but that does not work, either.  Help!

    Paldeng, thanks for the suggestion.  I've done all that.  I can connect to the server, but apparently they are not recognizing my ID and password.  I can use the server program if I don't go through Mail (using the same ID and password).  My mother in another state with another provider has had the same email issue, as also my husband on his laptop who uses the same internet connection I do.  His worked fine until we had it repaired at the Apple store and all the original programs reloaded (with the required updates, I assume).  We can receive email in Mail, we just cannot send.
    I contacted my service provider, and we went over my connections.  They said it was not their problem and connected me with Apple, resulting in a charge to me because my warranty is long expired.  Apple swears it is not their problem, it is the provider, so here I sit.  My son was able to fix my Mom's Mail (she's 97) and got my husband's working also, until mine went out, by tweaking connection descriptions and ports remotely.  The thing is, we had not messed with any of those settings, so what changed?  I just did not want to bother my son again, as he has many other demands on his time.
    Since this fiasco with the Mail v4.6 update, I'm wondering if something else was updated that works well with Lion and Mountain Lion, but does not work well with Snow Leopard and Leopard.  I think the problem I had with the Mail update was that my Mail program had been renamed to Mail (original), and therefore was not being recognized by the update.  Perhaps they had another tweak in there somewhere that is affecting outgoing mail connections?

  • I have a MacPro with two 1T hard drives. How do I access the hard drive that is not the start-up drive?

    I purchased a MacPro and upgraded to 2 1T hard drives.  How do I access the hard drive that is not the start-up drive?

    Have you formatted these new drives yet with Disk Utility?  That is the first step.
    Once they are formatted, if you want to see them on your desktop open the Finder preferences, General, and clock the checkbox that says "Show these items on the desktop" for the hard disks.  If that preference was already set you should see the drives appear after they are formatted.  Then they are there for you to use as you wish.

  • I just bought an ipad 2, it has not arrived but i would like to cancel the order because that was not the one I wanted. Do I get my money back if I make a return?

    I just bought an ipad 2, it has not arrived but i would like to cancel the order because that was not the one I wanted. Do I get my money back if I make a return?

    You will need to talk to Apple, they would be the only ones who can tell you. We are just a user to user forum here.

  • Since upgrading my phone to 6.0.1, I'm using way too much data. I believe it's the podcast app that's not loading shows while I'm connected to wifi. I have the 3g turned off for podcasts??? also after a phone call or an alert it starts playing a podcast?

    since upgrading my phone to 6.0.1, I'm using way too much data. I believe it's the podcast app that's not loading shows while I'm connected to wifi. I have the 3g turned off for podcasts??? also after a phone call or an alert it starts playing a podcast?

    I've also had the same issues, after upgrading to IOS 6.0, the apps in my iPhone 4 were crashing and the battery life run out very fast.
    The only solution worked for me was to remove all mail accounts (Exchange/Gmail) from my iPhone (in settings) and then add them back.
    The crashing were stopped! also the battery was back to normal.
    I found the solution by first looking at the crash logs (in IOS 6). you can find them at Settings -> General -> About (at the bottom of the About menu you will find the option that opens the logs).
    There i saw many logs about Low Memory crash. 99% of the logs were pointed that the largest process (use the most memory) during the crashes is "dataaccessd".
    I search in the web and found that this process is a deamon process that reponsible the Mail accounts (like Exchange/Gmail) and contancts list.
    I've installed the app "System Status - activity monitor" which shows important system info like CPU usage, Memory usage and running processes.
    Before apply my solution (deleting the mail accounts) i saw that the CPU usage was very high which consume the battery very fast. Also i saw that the memory (RAM) was run out.. which probably what cause the crashing..
    After deleting the mail accounts (at Settings -> Mail, Contacts, Calendars) i check again with the System Status app, and saw that the memory and CPU were back to normal.
    Adding the mail accounts back, still everything work ok
    Hope this solution will help you too,
    Enjoy!

  • Ipad displays "ipad is disabled connect to itunes", I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?

    Ipad displays “ipad is disabled connect to itunes”, I have tried putting the ipad into recovery mode and then restoring but that does not work. I have also tried doing a hard reset of the ipad and that does not work either. Any ideas?
    My son let one of his friends use his ipad. The next time he tired to use it he could not get it unlocked, I tired to unlock it but it kept telling me that I had the wrong pass code. With out me knowing my son continued to tire until it completely disabled it self.

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

Maybe you are looking for

  • Batch splitting for Outbound delivery using BAPI_OUTB_DELIVERY_CHANGE

    Hi all, Let me explain the scenario first. We are going to create a delivery in SAP with some line items and send it to a non-sap third party WMS.  They will pick the goods and send the delivery confirmation back to SAP.  In SAP we need to delivery c

  • Cannot bring up friends page

    my ipod will not bring my facebook page up. when I hit the "F" icon...it shows a blank white screen

  • CUP UWL and HR assignement issues

    Hello all, Does anyone know if: 1/ is there a possibility to send a request for approvel to the UWL task list or only to the CUP task list? 2/ is there a restriction of opening a request for another user based on an organizational assignment? (the re

  • Can very uneven audio levels be fixed?

                                                      How do I fix very uneven audio with Premiere Pro - Can it be done? Source/Root Cause: Person I'm filming is speaking into a handheld mike while walking around so they of course can't hold it perfectly

  • Video play

    I want a particular videos clips or some video clips to be played by only me. Example, I have 10 video clips in my IPAD2 video application, Currently i can or anyother person using (family member) my device can play all video. Instead of this i want