Now, we can create our extension called packtmedia
. First, we will open our favorite file manager and then inside the eZ Publish installation folder, we will open the extension
folder. In this folder, create an empty folder named packtmedia
.
# cd /var/www/packtmediaproject
# cd extension/
# mkdir packtmedia
We'll use this extension to create a new design, some template operators, and our custom translations. We can now prepare the directory structure that will serve us in storing our code.
First, we have to create the settings
folder that serves to override the standard configuration files (those named *. ini.append
) and, in particular, the site.ini.append.php
and template.ini.append.php
files that help to enable our design, operators, and translations.
We can create this folder by executing the following commands from the installation folder of eZ Publish:
# cd /var/www/packtmediaproject/extension/packtmedia
# mkdir settings
# cd settings
# touch site...