{"id":41762,"date":"2016-05-10T14:06:34","date_gmt":"2016-05-10T19:06:34","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=41762"},"modified":"2016-05-10T14:06:34","modified_gmt":"2016-05-10T19:06:34","slug":"quick-start-guide-to-site-publisher-templates-for-hosting-providers-and-resellers","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/quick-start-guide-to-site-publisher-templates-for-hosting-providers-and-resellers\/","title":{"rendered":"Quick Start Guide to Site Publisher Templates | For Hosting Providers and Resellers"},"content":{"rendered":"
Many end-users are looking for a simple way of getting a functional site online as quickly as possible. In our latest release we introduced Site Publisher, a tool that can give your customers a live site in just a few clicks.\u00a0<\/span><\/p>\n As a designer and hosting reseller, I decided to take stab at creating my own template for Site Publisher and was surprised how easy it was. In this post, I’ll show you how to create a new Site Publisher template to offer your customers \u00a0as well as provide you a special, new template I\u2019ve designed that you can customize to your heart’s content.<\/span><\/p>\n Begin by having a design that you\u2019d like to implement. Once you have the \u00a0design you\u2019d like to use, all you need next are three Site Publisher files to begin turning your layout \u00a0into a usable template:<\/p>\n The meta.json file is used to display the template information. This is where you set up the fields that appear on the \u201cCustomize and Publish\u201d step within the Site Publisher interface.<\/span> Example:<\/em><\/p>\nTemplate files<\/b><\/h1>\n
\n
Create the meta.json file<\/b><\/h3>\n
\n<\/code><\/p>\n
{\n\"information\":{\n\"id\":\"entrepreneur_template\",\n\"name\":\"Entrepreneur Template\",\n\"description\":\"A single page business site\",\n\"preview_image_path\":\"preview.png\"\n},\n\"fields\":[\n{\n\"id\":\"logo_url\",\n\"label\":\"Company Logo\",\n\"type\":\"text\",\n\"placeholder\":\"Image URL\"\n},\n{\n\"id\":\"hero_url\",\n\"label\":\"Hero\/Banner Image\",\n\"type\":\"text\",\n\"placeholder\":\"Image URL\"\n},\n{\n\"id\":\"headline\",\n\"label\":\"Headline or Title\",\n\"type\":\"text\",\n\"placeholder\":\"Headline\"\n},\n{\n\"id\":\"intro\",\n\"label\":\"About or Intro Content\",\n\"type\":\"textarea\",\n\"placeholder\":\"About us or intro content\"\n}\n\n]\n}<\/pre>\n