I want to apply branding to a sharepoint 2010 blog site which is a sub site of our internet. I'm trying to achieve this by creating a custom blog site template based on the original blog site template. So I followed the following blog post.
http://www.sharepointbits.com/blog/sharepoint-2010-custom-site-templates.html
And I got a copy of the blog template files from "C:...\14\TEMPLATE\SiteTemplates\blog", modified the files and put in to the "SiteTemplates\" folder.
I can see a new site template has been created but every time when I create a web site based on my custom template it uses the original blog template files for provisioning (for ex: default.aspx).
Is this the correct way to achieve this? Please let me know if I'm doing sth wrong here.
Thanks in advance.
-Madhawa
Have you created a custom webtemp file in 14\TEMPLATE\1033\XML that has a custom Template Name with a SetupPath that points to your copied folder in SiteTemplates?
Also, the Blog site definition is tricky. The custom lists are built right into the onet.xml file. I wonder if creating a custom copy of the Blog template will work as well as copying other site types would. I would probably use feature stapling to apply custom branding to the out of the box Blog template within your site collection.
Related
I've installed stencil and all its dependencies locally and was able to create a couple custom component but I can't figure out how to set a custom template for a custom "webpage" in bigcommerce.I thought it would be a matter of creating a custom page template (custom-page.html) in /templates/pages/ but that doesn't seem to hook it up. In the legacy version, you were able to select a page template from a dropdown. Is it a matter of uploading the theme via webDAV first? Is there a JS module required or config.JSON setting to register a template? Any help would be much appreciated.
To create custom template for webpage you need to place the file(e.g _custom-page.html that you have created) in template/pages/custom/pages directory.
To test it locally, you need to assign the custom template to the url in .stencil file. For example,
"customLayouts": {
"products": {},
"pages": {"_custom-page.html":"/{you-webpage-url}/"},
"brands": {},
"categories": {}
}
Currently, this feature is in beta and so you cannot assign the custom template to the desired webpage url in bigcommerce server. However you can do so by requesting bigcommerce customer service to enable this feature for your site and by accepting their condition for beta not supporting many features.
Note: Custom template name should start with _(underscore). Check I have changed your file name custom-page.html to _custom-page.html. Also I have assigned the _custom-page.html to pages directory, since you have created custom template for webpage.
Currently, you cannot set custom templates. This is on the roadmap and would be facilitated through the control panel.
This feature is no longer in beta. It is live the correct path for the custom templates for a custom page is templates\pages\custom\page
Upload a file like custompagetemplate.html into this folder.
There was an issue with manifest.json causing this feature not to work. Once this file was removed it was live and active on Bigcommerce.
I have a sharepoint 2013 subsite called 'projects' where all its projects are subsites that were created by a site template.
I wanted to make changes to the template so I created a new 'project' subsite using the template, made the changes and saved that subsite as a new site template.
Now, when I'm trying to create new project subsites I only see the old site template but can't see the new one.
I've checked the solution gallery and they are both appearing there in active state.
Any I ideas what went wrong here?
Thanks.
I found the solution: if I want to allow the use of site tamplates in subsites I need to enter their site settings and into 'Page layouts and site templates' and add the requested site template to the allowed list of site templates.
I can't believe the option was in front of me on the screen and I didn't see it...
You have to activate the Publishing feature on the root and on the affected site.
The Option for that setting is not there anymore. Don't know since when but I just had the same issue not being able to use a custom template for a new Site Collection.
-Template is present in solutions gallery
-Custom tab is not being displayed when I want to select a template for the newly created site
-In the site settings of the newly created site there is no Option "Page layouts and site templates" in the looks & feel section
I'm trying to use stapling to customize sharepoint 2010 blog template. I created a stapling feature and another feature for customizing the the site definition (onet.xml). It's work fine for web parts but if I include List Views it gives an error when I'm trying to activate the "customizing feature" (Not the stapling feature)
Error is,
"Error occurred in deployment step 'Activate Features': Cannot complete this action."
This is the xml snippet which causes this problem. (I couldn't post the xml part here)
http://social.msdn.microsoft.com/Forums/en/sharepoint2010programming/thread/6ba343f3-020b-47e5-938c-aeedcf094adc
BTW I'm trying to customize the default page here and my approach is
1) Get a copy of the existing custom page and rename and include in the feature
2) Change the master page of the above file to custom.master
3) Change the layout of the above page without removing "ContentPlaceHolders"
4) In feature element put module element copied from onet.xml
Appreciate if anyone can provide some insite on this.
Thanks
-Madhawa
Try provisioning the file without the View to make sure that your Url and Path attributes are correct. Once an empty page is displaying, add the View XML back. For the List attribute, try using the relative URL path (ex. Lists/Blog) instead of the template ID.
I am new to SharePoint my requirement is, we are developing a business intelligence dash board using pps with some custom reports built on it.
I need to replicate this site to create n no of subsites based on this bi dash board site. So I am planning to make this site as a site template and trying to create the site programmatically based on this site template. Can anyone help me how to achieve this.
Waiting for your reply.
One of the overload of creating a site accepts a site template object. What you need to do is to retrieve this object iterating through the collection of the custom web templates of the site collection: SPSite.GetCustomWebTemplates. You just get the one you need by name
I have saved a site as tempalte (i.e. MyMarketing.stp) and added to sharepoint server using stsadm addtemplate command and after few days lost MyMarketing.stp file. Now it is available for creating top level sites as well. I want to get this site template back as MyMarketing.stp file. Is it possible to extract it from the server as MyMarketing.stp file?
Thanks and in advance!
Regards,
Asher
Create an new site based on the template, then use http://SITEURL/_layouts/savetmpl.aspx to save the site in it's own site template gallery. you can now download the .stp file from that gallery.
Alternatively you could use SharePoint designer to export the site as a template.