I tried to add a custom created webpart to a customized team site which I then saved as a template. The webpart in question worked fine with the original site. However, when I created a new site based on this template(within the same server that the webpart in question was deployed to) the area which was supposed to contain the webpart was blank. Is there anything I'm missing or is it not possible to deploy a custom webpart into a custom site template?
Just guessing here because I haven't tried it but when you add a webpart to the page you are essentially customizing that page for that specific site. The webpart location is stored in the content database just for that individual page.
When you save a site as a template you are just saving the structure so when you provision a new site the customized page isn't there.
Related
I have created SPFX Project and created Masterpage in classic view and hosted it already in SharePoint online and when I add my SharePoint framework Web parts
to the master page after 2 days cannot edit anymore on the save or do any actions from SharePoint ribbon however my master page works fine at SharePoint online, SO after a lot of searches I found all people use Modern View but in the modern view, I cannot do any branding to my portal
is there any way to fix this problem or Doc to how to create a master page in the SharePoint framework?
You were not able to add branding in Modern Page. You have to use the SharePoint Framework Extensions. By using Application customizer, you can add your customization's in the page placeholders.
Here you can start page placeholders in application customizer.
I am able to add webpart zone snippet (from design manager) in my custom page layout. Although it gets added on the page layout.
But when I click on add a webpart in the my custom webpart zone section on the aspx page nothing happens.
What could be wrong?
I have replaced the default Search Box in SharePoint using Delegate control.
Now my delegate control has a Text Box and a Button.
On Button Click it should take the users to a web part Page wich has all my Custom Web Parts added.
But this Web Part page should be accessible from every site in sharePoint as my Custom Delegate control can be added anywhere within the farm.
Ex: like OSSSearchResults.aspx but my custom web part page can be modified by users.
Can some one tell me how to do this?
You can put url of the custom results page in Search settings in site collection administration section.
Also You can customize the default search results page with out of the box webparts like SearchCoreResults webpart, refinement pane, search box etc.
But my question is can i add a custom webpart to this results.aspx.
I have a dotnet implemented site. I want to create same site template in sharepoint. what i have to do. Please if possible tell me detail steps. waiting for reply......its too urgent
Custom Site Template is a big subject on SharePoint . While there is no out of the box way to convert an ASP.NET Site to the SharePoint Custom Site Template.
Steps to do is to dissect the ASP.NET Site to various parts.
User Controls
CSS & JavaScripts
Pages
Custom dlls
Change each of the Parts to Web Parts / Drop the Control in the Control Templates folder.Create a new web part page for the page / Page Layout & Master Pages deployed as the Features.
I want to read and change the Title of sharepoint site (both SPSite and SPWeb) using Sharepoint web services.
I have the url to the sharepoint site. Wanted to change the title of the page using the sharepoint web service.
Cannot create a SPWeb.
Any input.
I don't think the current SharePoint webservices have methods for updating a web or site collection's Title. However, you could write your own webservice that could do this fairly easily.
You can get the title and description through a web service but don't change it because there's no update method. Webs.GetWeb Method