Template to create Liferay portals with a new theme developed using the amazing Twitter Bootstrap framework
These instructions show you how to get started with bootstrap-theme source tree. Note that these instructions are for developers looking to customize and collaborate with bootstrap-theme itself.
This project contains:
- Bootstrap theme, which includes base CSS, Javascript and HTML for typography, forms, buttons, tables, grids, navigation, and more with responsive design based on latest version Bootstrap 2.3.2.
- Theme templates files customized to use the Bootstrap Base CSS and Components.
- Theme layouttpl files that create the Bootstrap Fluid grid system
- Theme look-and-feel settings
If you like to try a release that has already been built, we recommend that you visit download page at SourceForge and read the Try the Bootstrap theme section below.
To develop bootstrap-theme you need:
- Liferay Plugins SDK 6.1 GA 2, command-line-driven development environment for portlets, themes and layout templates.
To start with bootstrap-theme you need:
- Liferay Portal 6.1 CE GA2
- Private Plugin Installer CE The Private Plugin Installer app allows developers and system administrators to hot deploy individual Liferay plugins using the Control Panel.
- Download this project to themes directory in your Liferay SDK
- Customize as needed
- Run ant to deploy the theme
-
Install Bootstrap theme (see section Install Bootstrap theme below)
-
Download the Bootstrap site template
To test Bootstrap theme quickly, we have created a Bootstrap site template, which includes Liferay pages configured with demo web contents to build the Bootstrap site in Liferay: Home, Get started, Scaffolding, Base CSS, Components, JavaScript, Customize
-
Import Bootstrap site template (see section Import Bootstrap site template below)
-
Use Bootstrap site template (see section Use Bootstrap site template below)
To install bootstrap-theme-6.1.1.1.war:
-
Go to
Control Panel >> Plugins Installation
, press tabPlugin Private Installer
, then press tabUpload File
.Note that you can also install it by copying to
/deploy
directory on your Tomcat server. -
Go to
Control Panel >> Site Templates
and press Add button.Create the site template for your server, for example Bootstrap Site. It will appear in your Control Panel once created.
-
Go to
Control Panel >> Site Templates
. Locate the target site and press Actions then Import action to load bootstrap-site.larWe suggest you activate Deleted missing pages
-
Check the default web content have been imported successfully. To check it, go to
Control Panel >> Site Templates
, press Actions button and go toView Pages
-
Configure the footer for site pages:
Control Panel >> Site Templates
press Actions button and go toView Pages
- From dockbar select
Manage >> Site Content >> Web Content
and search Footer__Bootstrap content, then copy its number ID. - From dockbar select
Manage >> Page
, selectPages
and replace the value of fieldfooter-section-article-id
with the ID of your footer web content. - The footer web content will be visible in all the pages of site template.
- Check the default web content have been imported successfully. To check it, go to
Control Panel >> Site Templates
, press Actions button and go toView Pages
- Go to
Control Panel >> Sites
, press Add button and select the site template named "Bootstrap site" - Give a name for your new site and save it
Note your new site has been populated with web contents, documents and media, all copied from the Bootstrap site template.
Have a bug or a feature request? Please open a new issue. Before opening any issue, please search for existing issues and read the Issue Guidelines, written by Nicolas Gallagher.
All contributions will be welcome, just create a pull-request and we will take it in account.
Thanks!
Twitter Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by Mark Otto and Jacob Thornton.
Liferay Portal is an enterprise web platform for building business solutions that deliver immediate results and long-term value.
Copyright (C) 2013 DISID TECHNOLOGIES S.L.
This work is licensed under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html