Download a template and theme from Sitefinity Marketplace
In Sitefinity Marketplace (/marketplace.aspx) you can find a lot of prebuilt templates with themes, which you can download and apply on your website. To use a template with a theme from Sitefinity Marketplace, perform the following procedure:
Download the template with the theme
Perform the following:
- Go to Sitefinity Marketplace.
- In Themes & Templates section, click the theme, which you want to download.
- Click Download from Publisher button
- Save the .zip file in folder ~/App_Data/Sitefinity/WebsiteTemplates/.
NOTE: Folder WebsiteTemplates is not created by default when you create a project. You must create the folder manually.
- Unzip the .zip file in the same location.
Add the Master page in Sitefinity
Perform the following:
-
Go to Sitefinity’s backend (http://<yoursite>/sitefinity)
-
In the main menu, click Design » Page Templates.
-
Click Create a Template.
-
In Name input field, enter a name for your template.
-
Select Use template and click Select another Template.
-
Click Use your own .master file.
-
Browse the file in your App_Master folder and select the .master file.
-
Click Use Selected » Create this template.
Register the theme
To register a theme in your site, perform the following:
-
Go to Sitefinity’s backend (http://<yoursite>/sitefinity)
-
In the main menu, click Administration » Settings.
The Basic Settings page appears.
-
To open all setting, click Advanced.
The Settings page appears.
-
In the left menu expand the section Appearance.
-
Click Appearance » Frontend themes.
-
Click Create new button.
A form for new theme appears.
-
In Name input field, enter a name for the theme.
-
In Path input field, enter the physical path to your theme.
For example, enter ~/App_Data/Sitefinity/WebsiteTemplates/YourTemplate/App_Themes/YourTheme.
-
To finish the registration of the theme, click Save changes.
Apply the theme to the template
To assign theme to a template, perform the following:
-
In the main menu of your website’s backend, click Design » Page Templates.
-
Click the name of the template that you want to bind with a theme.
-
In the upper-right corner click Theme.
-
In the dropdown menu select a theme that you want to assign to the template.
-
To save your changes, click Publish.
Applying external widget template
If your theme has widget templates, you must apply the templates to the widgets. To check if you theme has widget templates, open folder ~/App_Data/Sitefinity/WebsiteTemplates/YourTemplate/App_Themes/YourTheme. If the folder contains folder WidgetTemplates, it means that your theme has widget templates, used to style Sitefinity widgets.
To apply an external widget template to a widget, perform the following:
-
Go to Sitefinity’s backend (http://<yoursite>/sitefinity).
-
Click Pages.
-
Click the page that you want to edit.
-
Add the widget to your page and open the advanced editing mode.
For more information about adding and configuring widgets, see Widgets.
-
Click ControlDefinition » Views.
-
Select a view for the widget.
For example, NewsFrontendDetails or NewsFrontendList.
-
In field TemplatePath, enter the path to the widget template.
For example: ~/App_Data/Sitefinity/WebsiteTemplates/YourTemplate/WidgetTemplates/Blogs/List/BlogList.ascx.
-
Click Save.
The advanced editing mode closes.
-
To apply the changes to the page, click Publish.