Share content between sites SharePoint 2013

Hi folks,
I have 2 sites on sharePoint 2013 (intranet site + Internet site), each one has its own content (lists, master page, etc...) except some pages like "about us", "daily news"... 
My problem is the following:
The content administrator is doing the work twice; when he wants to add/ edit those pages content he needs to add/edit it in the intranet site AND in the internet site...
Then, i want to have some solution to that allowing this user to add/edit content ine the intranet site and the content of the internet site would be updated automatically... Is there any way to do this?
Any help will be appreciated

Hi,
We can customize a management tool using .Net Client Object Model.
The following code snippet your reference:
private void AddFile(string targetUrl, string targetListName, SPListItem item)
using (MemoryStream memoryStream = new MemoryStream())
ClientContext context = new ClientContext(targetUrl);
KeyValuePair<string, string> ssCredentials = SecureStoreUtils.GetSecureStoreCredentials();
context.Credentials = new NetworkCredential(ssCredentials.Key.Split('\\')[1], ssCredentials.Value, ssCredentials.Key.Split('\\')[0]);
var web = context.Web;
context.Load(web);
context.ExecuteQuery();
CopyStream(item.File.OpenBinaryStream(), memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);
Microsoft.SharePoint.Client.File.SaveBinaryDirect(context, web.ServerRelativeUrl + "/" + targetListName + "/" + item.Name, memoryStream, true);
static private void CopyStream(Stream source, Stream destination)
byte[] buffer = new byte[32768];
int bytesRead;
do
bytesRead = source.Read(buffer, 0, buffer.Length);
destination.Write(buffer, 0, bytesRead);
} while (bytesRead != 0);
More information:
Sync files SharePoint files between web applications using the client object model
http://sacarter.wordpress.com/2011/12/08/sync-files-sharepoint-files-across-web-applications-using-the-client-object-model/
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Manager hierarchy is not showing the Organization web part in my site sharepoint 2013

    Hi,
    In My Site SP2013,we added a organization web part,manager is available for users but we are unable to see the manager name in the silver light view in organization web part,we are able to see it in html view.
    can any one please let me know the problem.
    Regards,
    phani

    Hi Phani,
    check those links
    https://blog.karstein-consulting.com/2011/06/16/problem-and-workaround-organization-browser-silverlight-web-part-is-empty-on-other-site-than-mysite/
    http://social.technet.microsoft.com/wiki/contents/articles/23593.sharepoint-2013-organization-browser-web-part-does-not-render-in-html-view-for-windows-claims-users.aspx
    http://support.microsoft.com/kb/2643420
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Prevent Site Members to view Site Contents Page in SharePoint 2013

    I created SharePoint 2013 Site and it has 5 variation sub sites as well. Each site has several pages. I have end users added to Site Members group who should access all the Custom pages. Customer has raised a security issue, end users are able to access
    Site Contents page by supplying the link in the URL. I tried adding these end user to site visitors but unfortunately they are not able to access variations sub sites custom pages.
    Kindly help me how to solve this.

    Little confuse. 
    You want to stop users from viewing page or you want them to to be able to view pages
    Which pages are they able to view. 
    Just follow below steps to prevent users form accessing application pages
    http://blog.mastykarz.nl/preventing-authenticated-visitors-browsing-system-pages/
    You can even try this powershell
    param (
        $WebApplicationUrl
    $wa = Get-SPWebApplication $WebApplicationUrl
    $wa.PolicyRoles.Add("Deny System Pages",
    "", "EmptyMask", "ViewFormPages")
    $wa.Update()
    $claimType = "http://schemas.microsoft.com/sharepoint/2009/08/claims/identityprovider"
    $claimValue = "AspNetMembership"
    $claim = New-Object Microsoft.SharePoint.Administration.Claims.SPClaim($claimType,
    $claimValue, "http://www.w3.org/2001/XMLSchema#string", [Microsoft.SharePoint.Administration.Claims.SPOriginalIssuers]::GetIssuerType("SecurityTokenService"))
    $encodedClaim = $claim.ToEncodedString()
    $policies = $wa.ZonePolicies("Default")
    $policy = $policies.Add($encodedClaim
    , "Authenticated visitors")
    $policy.PolicyRoleBindings.Add($wa.PolicyRoles["ViewFormPagesLockDown"])
    $wa.Update()
    If you want restrict users to access some specific page, the you need to remove inheritance of the site 
    If this helped you resolve your issue, please mark it Answered

  • How to delete Content Source in Sharepoint 2013 Search Service

    I want to delete Default Content Source in Search
    Service in SharePoint 2013 but delete button is disable?Please see the below image. Content Source Type=SharePoint Sites
    How to do it?
    If In Content Source type=Files than delete button enables but
    not for the Content Source type=Sharepoint sites
    Vishal Goyal

    Hi,
    try to remove it using powershell
    $searchapp = Get-SPEnterpriseSearchServiceApplication "NameofSearchAPp"
    Remove-SPEnterpriseSearchCrawlContentSource -SearchApplication $searchapp -Identity "Name"\Regards
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Add a list from a subsite to the top level site SharePoint 2013

    Hello,  I am trying to display a calendar from sub site to the top level home page and cannot seem to make it happen.  I have opened the calendar in SPD and saved that as a webpart file to my desktop and then uploaded into the app gallery and web
    part list and when I go to add it to the top level home page I get the following error:  'List does not exist' 'The page you selected contains a list that does not exist.  It may have been deleted by another user."  Any idea? 
    I am running 0365 w/SharePoint 2013.
    Thank you!
     

    Hi,
    Please perform the steps below:
    Access calendar list in subsite, in the Customize List tab, click Edit List. It will open SharePoint Designer.
    In Views tab, click Calendar, it will open list view in Advanced mode, and you will see code.
    Delete the part between <ZoneTemplate> and </ZoneTemplate>
    click INSERT in the toolbar > DataView > click calendar list > List View Tools bar appears in green color.
    Click WEB PART, save web part to site gallery (ensure you have site-level admin permission)
    Access root-site, insert web part to page, the web part is in Miscellaneous category.
    For clearly:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to create custom content placeholder in sharepoint 2013

    Hi, I would like to create custom content placeholder don't know how to and add to my custom master page in sharepoint 2013. I have no luck searching on how to create custom content placeholder, any help?
    Thanks,
    Johnweb

    Hi,
    If you’re not fixed your requirement with the Out of the box SharePoint place holders, you can create as many as you want as long as the ID doesn’t conflict. On the master page add the content place holder 
    <asp:ContentPlaceHolderid="CustomName" runat="server"></asp:ContentPlaceHolder> and add this to your page layout
    <asp:Contentrunat="server" ContentPlaceHolderID="CustomName"></asp:Content>.
    I suggest you provide your basic requirement for further research.
    If you want to customize a master page, the Rajendra's method would be helpful.
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problems when trying to return information for External Content Types in Sharepoint 2013

    This is my first post on the forum, until I tried on this problem but have not found anything.
    When trying to return the information from the external content displays the following error:
    Error retrieving data from mill. Administrators: query the server log for more information.
    I do not know what else to do...

    Hi,
    According to your post, my understanding is that you got an error when tried to return the information from the external content.
    Did the error occur when you created a new external content type or created a external list?
    You can check the steps with the following articles about how to create a external content type.
    http://lightningtools.com/bcs/creating-an-external-content-type-with-sharepoint-designer-2013/
    http://wyldesharepoint.blogspot.in/2012/12/sharepoint-2013-setting-up-external.html
    If the error occurred with the external list, you can check the steps with the following article.
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/01/08/how-to-create-external-data-column-in-sharepoint-2013.aspx
    You can also check the event log and ULS log to see if anything unexpected occurred.
    For SharePoint 2013, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Managing Office documents (content & permission) inside SharePoint 2013 document libraries

    I have a document library inside my SharePoint 2013 publishing site collection. And I have the following scenario:-
    Someone add a word document to the document library,
    I can click on the word document inside the document library, and it will open inside my word client application:-
    Then I can click on “Edit document” button inside the word document.
    Do some modifications.
    Click on “Save” button.
    And the changes will be saved to the sharepoint document library (which is great).
    But I have the following questions:-
    Who can basically edit the word document and publish the edit to the SharePoint again? is this restricted to only users who have “edit” permissions on the document library,?
    Can I specify that only me or certain users can edit specific documents?
    If I open the word document using Firefox or chrome , I will not be able to edit the document and publish it back to SharePoint? So is this feature within IE only ?
    Can anyone advice please?
    Thanks

    Hi,
    According to your post, my understanding is that you have some questions about the documents in library.
    For the first question: yes, only the user that has more than edit permission can edit/publish the documents.
    For the second: we can set item level permission for libray using PowerShell to restrict only the created user can create and edit the items.
    http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx
    For the third question: we can install the
    IE-Tab in the Chrome or Firefox to support opening the documents directly.
    http://stackoverflow.com/questions/14455212/how-to-open-sharepoint-files-in-chrome-firefox
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Good books on Business solution or content management by SharePoint 2013 OOB Apps or functionality along with examples

    Hi,
    Any help?
    Thanks
    srabon

    Hi,
    I recommend you the book named Beginning SharePoint 2013: Building Business Solutions:
    http://www.amazon.com/Beginning-SharePoint-2013-Building-Solutions/dp/1118495896
    Practical SharePoint 2013 Enterprise Content Management:
    http://www.amazon.com/Practical-SharePoint-Enterprise-Content-Management/dp/1430261692
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Cmis content search in sharepoint 2013

    For content search using cmis to work with SharePoint 2013, does it require some service to be enabled ?Issue is  :while executing the query  " SELECT * FROM cmis:document where contains ('Test') " , this returns empty result; whereas
    it should have returned some  matching documents which I have added. The same query with out  the 'where' clause returns all the documents. I tried apache chemistry client libraries ( webservice ). 

    Thanks for the reply. I tried the federated search. Configuring the results source works fine and gives me search results in the query builder. However i am getting the following error in the search results web part.
    1¾System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate() at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.RetrieveDataFromRemoteServer(Object unused) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.ProcessRecordCore(IRecord record)

  • Share contents between smartphones without uploading it

    What can you do if you want to share a private contents on your phone with one who is far from you?
    You may :
    1. send it by email.
    2. upload it to SNS, or any else?
    But both of them imply to upload the contents on your phone to external server.
    If you use an app named as "iFMW", you can share a private contents on your phone with someone you like without uploading them.
    Only thing you do is to select the contents and pick a user to be received.
    iFMW supports multiplatform(Android2.1, Android2.2, and also SymbianOS) and multilanguage(English, Spanish, German, French, Russian, Japanese, Chinese)

    great sharing tool I recommend.
    I installed ifmw on my droid and it works well.
    share contents on my phone , no need to upload.
    It should be great to share photos with my friends when I travel on.
    Thanks for your information.

  • How to migrate Lotus Notes content migration to SharePoint 2013 by using interop.domino.dll?

    I already read this blog "http://sharepoint-community.net/forum/topics/lotus-notes-to-sharepoint-2013-migration?commentId=6614983%3AComment%3A94114&xg_source=activity"
    In this just the information is not that good enough. I need more details and clarity about the interop.domino.dll ?
    Ramesh S

    Hi Ramesh,
    Here are some posts about this topic of get info from Lotus notes, which should help, you can take a look.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/96b405b4-2550-42c2-9126-3872c51b9515/im-looking-for-the-difinitive-guide-on-the-domino-library-within-net-vs-2008?forum=csharpgeneral
    http://www.ibm.com/developerworks/lotus/library/domino-msnet/
    https://naimmurati.wordpress.com/2014/01/11/basic-operations-with-domino-net-api-for-export-purposes/
    http://rprabhala.com/2013/01/retrieving-documents-and-their-attributes-from-lotus-domino-using-the-com-based-api/
    http://stackoverflow.com/questions/4264434/documentation-for-the-lotus-notes-domino-dll-respectively-interop-domino-dll
    For further more about interop.domino.dll documentation, I would recommend you post in lotus forums for a better assistance with more experts regarding this field.
    http://www.ibm.com/developerworks/lotus/forums.html
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Oracle DB as external content type in SharePoint 2013

    Hi all,
    I'm trying to create and ECT from an Oracle Database in SP 2013. Is it possible to create it with Sharepoint Designer 2013? I had a look at this
    article but it creates a DataSource. I am no expert in Sharepoint, but I think that I cannot create a list dynamically updated with Datasources, right? Is it possible through Designer or should I use Visual Studio?
    Thanks in advance for your time

    No. Here is the snapshot of what SP2013 Designer supports against a site built on SP2013 enterprise
    This is exactly the same as what was there in SP2010.
    Try out BCS Metaman.
    BTW, you only need BCS if you need 2 way bi-direction sync of data between sharepoint and Oracle.
    if you just want to read data from oracle, then perhaps just use SSRS.. which will help you connect to oracle and read data into reports.
    val it: unit=()
    Could you support us with full steps for using SSRS to Read data from Oracle Database ?

  • HT202213 Two Itunes libraries on one computer.  Any way to share content between the two libraries?

    We have 2 ITunes libraries on one computer.  Is there a way to share movies, music, etc. between the two libraries?

    To your second question, probably the easiest way is to set up another user account on your machine. Then when that user opens iTunes, it will be a new library (empty) that they can put anything they want into, and not corrupt your library.
    With another user account, they can also customize their own desktop photo, desktop icons, etc. so lots of benefits doing it that way. Works out great for me and my 13 year old daughter so I don't have to see the latest Emo band hearthrob's face on my desktop.
    Patrick

  • Can I create a second Apple ID and share content between the two?

    We have an Apple ID that's used by the whole family to buy music etc from iTunes, but we also have 3 separate Apple devices, two iPhones and an iPad. Hence, ideally we would have 3 separate ID's that could all use the content currently on the family one. Is anything like this possible? Many thanks in advance.

    Well yes, but if you want to update those apps, you'd need to sign in under your old Apple ID to update them. It's really best to just stick to one Apple ID, or you'll run into association complications down the road.

Maybe you are looking for

  • Error when Interative Adobe Form is called from Webdynpro ABAP.

    Hi Experts, I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error. Line: - The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout The error occur

  • Backing up in The Cloud

    Thought I'd share my experiences to date of using these marvellous Infinity upload speeds (16Mbps in my case) to do stuff that in practice was pretty well impossible before. For example, doing major backups into The Cloud - more than a DVD's worth, 5

  • Recording/exporting to quicktime

    Is the function of recording a Keynote show with timings and transitions completely garbage when exported to Quicktime? When I export, it seems that most of the transitions are lost. Is there something I'm missing or is this just broken? I need to fi

  • Installation ended prematurely because of an error.

    Hi There, could need a bit of insight. I am trying to update my XI 3.1 installl with SP2.3. SP2 installed ok but installing FP1, 2, or 3 fails with the error message in the subject line. Sometimes the install does not even start. After running the ex

  • DW equivalent to this GoLive action?

    I have a site with some elements using Nate Baldwin's SetImageAndLink.action. I'm trying to find the same behavior or extension for DW CS3/5 so that I don't have to re-install GL just to edit a few pages. If it doesn't exist, I'll buy a beer for some