How to copy the template for secure editing?

Editions: all
Versions: all

The easiest and most secure way to modify the existing template is to copy it first.

With the copied template you can edit, tryout and have fun without destroying the original.

Therefore, just copy the folder templates/<templatename> (e.g. templates/pacific) to default/mytemplate.

It´s important to edit templates/mytemplate/template.yml then.

The content of templates/mytemplate/template.yml should look like this:

mytemplate: # IMPORTANT: this is the unique_template_id
name: mytemplate # this name is shown in the backend
engine: PHP
skins: [default, dark, business, accessibility]
layouts: {default: layout.php, embed: embed.php}
application: [frontend, webtv]
mobile: false
separator: '::'

Clean the cache with ./symfony cc on the command line in your VIMP folder and then choose the new template in the backend (administration -> template)


Plugins (under the plugins/-folder) have their own template folders. You have to copy these folders, too.

Go to the plugins/ folder and search for the templates folders to copy, e.g. pacific:

# cd plugins/
# find ./ -name pacific -type d

As output you get e.g. (depending on the VIMP edition and installed extensions):

# find ./ -name pacific -type d

Now simply copy the folder and name it like your new template folders:

# cp -av stFacebookCommentsPlugin/templates/pacific stFacebookCommentsPlugin/templates/mytemplate

Last update on 2020/08/10 by Admin.

Go back