Skip to content

Latest commit

 

History

History
85 lines (52 loc) · 2.11 KB

migrate-an-alphalemon-cms-theme-to-redkite-cms.rst

File metadata and controls

85 lines (52 loc) · 2.11 KB

Migrate an AlphaLemon CMS Theme to a RedKite CMS Theme

This document explains in detail how to migrate an existing AlphaLemon CMS Theme to a RedKite CMS Theme.

The AlphaLemon folder

RedKite CMS Themes live under the RedKiteCms, so rename the AlphaLemon to RedKiteCms

The DependencyInjection Extension

Open the theme DependencyInjection Extension file and replace the following use statement

use AlphaLemon\ThemeEngineBundle\Core\Rendering\DependencyInjection\BaseExtension;

to this one:

use RedKiteLabs\ThemeEngineBundle\Core\Rendering\DependencyInjection\BaseExtension;

then replace the configureTheme method as follows:

public function configureTheme()
{
    return array();
}

The theme service file

Open your theme service file, saved under the [ThemeBundle]/Resources/config folder and replace the following code:

alpha_lemon_theme_engine.themes.theme

with this one:

red_kite_labs_theme_engine.themes.theme

Now you have to replace all the AlphaLemon entries in each file. The best and easy way to do that is to use the "replace in files" function of your editor. So look for **namespace AlphaLemon** and replace it with **namespace RedKiteCms**

Run the commands

The hard job has been made, so run the following commands from the console to complete the migration:

Clear the cache for all the environments:

php app/console ca:c
php app/rkconsole ca:c --env=rkcms_dev
php app/rkconsole --env=rkcms redkitecms:generate:templates [YOUR THEME BUNDLE]

Multi languages websites

The block type, which handles the languages menu for multilanguages websites, has called with another name, so the database m.ust be updated. Ru n the following command from the console:

redkitecms:update-to-red-kite-cms

This step can safety be omitted if your website has only a language.