Web address of .url files in Sharepoint Online document library - sharepoint

When we add "Link" files to the Sharepoint document library, how can we edit/display the original web address of these .URL files?
Currently, I can only see it when I click on the URL.

Per my test and knowledge, URL files created in the document library cannot be edited. You could click Copy link to check the link of URL file.

Related

Open a file directly in Teams from a tab

I have deployed a SharePoint webpart (SharePoint Framework) to Microsoft Teams. In this web part, I have a list of files that I want to open directly in Teams.
I have tried to get the link from the "Files" tab (https://teams.microsoft.com/l/file/7FFA7D9D-CBF1-4679-9C80-76446AE11ABD?tenantId=0f48c6f4-52a5-4553-b476-4ee2ee0aecca&fileType=docx&objectUrl=https%3A%2F%2Fxyz.sharepoint.com%2Fsites%2FAZRTZ%2FShared%20Documents%2FGeneral%2FArchitecture%2FTest.docx&baseUrl=https%3A%2F%2Fxyz.sharepoint.com%2Fsites%2FAZRTZ&serviceName=teams&threadId=19:0d1f6f397c51421189e791a9ab436a48#thread.skype&groupId=98edc5a8-02ac-4f58-8638-ea88ac6aaa4d) and put it in the href="" of the link. It does not work, it opens the file in the browser.
I also tried to put the direct link in the href (https://xyz.sharepoint.com/sites/AZRTZ/Shared Documents/General/Architecture/Test.docx). It downloads a copy of the file in the browser.
I want to open the file directly into Teams, the same way the files are opened if the user goes to the "Files" tab (eg. if the user opens a .doc file, Word Online in Teams must open, if the user opens an image, a previsualisation in Teams must be opened, ...)
Succeed with a shorter version of the Deep Link syntax myself, in a message card from an incoming webhook connector, provided I used the OpenUri action syntax and not a plain markdown link:
https://teams.microsoft.com/l/file/?fileType=<extension>&objectUrl=<absoluteUrl>
this was linking to Sharepoint files.
Using the Deep link I managed to open the file directly in Teams. I had to format the URL :
https://teams.microsoft.com/l/file/{file-id}
?tenantId={tenant-id}
&fileType={file-type (jpg, xlsx, docx, ...)}
&objectUrl={file-encoded-link (SharePoint link, aboslute URL)}

Deployment of publishing pages which contain Content editor web part and summary link web part

TIA
I want to deploy my publishing pages to production environment.My page contain content editor web part and summary link web part. when i import this pages on production site, for summary link web part i got error "list does not exist". I want to create all pages as it is on production site. I don,t have access on Production site to create and edit pages.
This is because the Summary Links Web Part references the list that contains the page where the Web Part resides on. If you open the .webpart file in a text editor you’ll see ListName and ListId containing the GUID of that list.
Try to delete the list GUID using text editor as this blog suggested and then move to the Production environment:
Importing a Summary Links Web Part: List does not exist

Sharepoint 2010 downloads html instead of opening from SiteAssets

I uploaded an html page into the SiteAssets of SharePoint 2010. When I click on it or type the url in it tries to download instead of opening it in a browser. Should I put the html file somewhere else? Do I need to create a new site collection?
html is not a safe file.
You have 3x options here
rename the file to aspx and watch it work
add the text/html to safe files on the SharePoint farm. Google it..
Enable Permissive file handling on the web application (rely not recomanded)

Duplicate SharePoint MOSS site without content

What is the best way to copy an existing SharePoint MOSS site and then recreate a copy of it on the same server?
I want to ideally include web parts but not actual content like documents etc.
I've looked at using the SPDeploymentWizard and saving the site as a template but the SPDeploymentWizard takes all the content and saving it as a template I get an error that the site is too big to save.
Any suggestions appreciated
You can create a site template by clicking the "Save Site as Template" option in the Site Settings page. SharePoint does not have the ability to create templates based on Publishing definitions but there is a work around listed here:
link text
Webpages with weparts or not are considered content in SharePoint.
So to move the site you will have to create a new moss site with an associate content database.
You will then be able to backup your original site and restore it over the new one.
Then you will have to delete the content you did not want to have in the new site.
To avoid this problem in the future, create a SharePoint Solution containing site template using STSDev2008.
This will take time, but it will allow you to create a site with all the required content pages etc ready to go and will reduce the time to create these sites.
You can backup and restore to a different server using stsadm.exe.
EDIT
Apparently there's an actual export feature for content
http://msdn.microsoft.com/en-us/library/bb507233.aspx
The default size of templates is around 10 MB. you can increase that using
stsadm -o setproperty -pn max-template-document-size
Also if you are doing templates, that does not do sub-sites.

How do you change the address of a document library?

I have a site with multiple document libraries in it. One of the site users has full control of the site & at one point, instead of creating a new document library, they renamed the default document library from "Shared Documents" to "Correspondence". Now they've opened the document library in windows explorer, so it's added an entry into their network places. The name of the entry was "Shared Documents on portal.mydomain.net" and not "Correspondence on portal.mydomain.net". This is because the address of the library is still "Shared Documents". I went into the user's network places and renamed the entry, however I would prefer to have the address changed as well, so that future users do not run into the same problem.
I looked in the Document Library Settings but couldn't find a place to change the address there. The address gets displayed in "Title, description and navigation" but there is no option to change it. I tried looking under Site Actions > Site Settings > Content and structure to see if there was any way to change the address there. However, when I check off the Correspondence document library and pull down the actions menu, "Move" is greyed out.
I suppose that I could save the library as a template, include the content & make a new library in the proper address, but then the modified by information would all be wrong.
Any ideas?
Renaming the document library in SharePoint Designer changes the address.
Open the library in Windows Explorer, and just rename the folder. Works in Sharepoint Foundation 2010.

Resources