Creating a custom page template in stencil for bigcommerce - templates

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.

Related

Is it possible to create a new BigCommerce page template without installing Stencil locally?

I am not a coder, by any means, but I am confident in my ability to make HTML, CSS, and some PHP alterations to existing websites. I want to create a new page template for a client's BigCommerce storefront so the layout is specific to a content type; so far my attempts of uploading this template have not been successful and I am wondering if I am missing something.
Details:
I have not created a local installation of Stencil. I hope to just create the template and make changes via the online Theme Editor.
I have downloaded the theme from BigCommerce; my new page has been created from the default page.html file and then placed in the following path: templates/pages/custom/page/custom_page.html.
I have deleted the manifest.json file.
I compress the entire theme folder (zip) and try uploading it via My Themes.
I went into the config.json file and changed the theme name from the original.
I get the following error when trying to upload the theme: "There was a problem processing your theme".
So - what am I doing wrong? I assume it is a lot of things. Thank you for your help!

sharepoint 2013 custom site template not showing up on subsite

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

How to set new joomla template

I have created my own template for Joomla and now I want to apply it to my site. However, when I logged in to the adminstrator --> extensions --> Template Manager, my template was not there. So, I got confused. I already put all of them into an appropriate folder and try to zip them, try other couple of tutorials in the Internet. The Template Manager just does not recognize my template, no error
Are you using Joomla 1.6? If so, you may need to "discover" your new template.
This can be done by going to Extensions -> Extension Manager and clicking the Discover tab at the top. Do a refresh and check if your new template shows up. If it does, then you also have the option to install it from here and then it should show up in the template manager.
You need to have a valid templateDetails.xml for the template to show up in the template manager. You do not have to install the template through the installer, you can just upload the files.

Modifying the django-cms 'add plugin' template on a per plugin basis?

The template I'm specifically talking about is the one that is used when a user add's a plugin to a page. Both in the admin area, and when modifying pages directly, it is displayed using an iframe.
The template itself is located cms/templates/admin/cms/page/plugin_change_form.html.
My problem is that I need some javascript to populate a drop down list within the form. All the javascript is run before the iframe is added to the page though, so I thought if I managed to edit the template I can tell the iframe to load some specific js. I can obviously just change the template directly, but that's a bit of an undesirable solution. I would rather keep it within the django application and even better have the js run only on specific plugins.
Any thoughts are appreciated.
You can set the change_form_template on your CMSPluginBase subclass, as CMSPluginBase is a subclass of django.contrib.admin.options.ModelAdmin.

Problem in provisioning when using stapling to customize sharepoint 2010 blog template

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.