There was a problem loading the comments.

How to copy the template for secure editing?

Support Portal  »  Knowledgebase (FAQ)  »  Viewing Article

Editions: Light, Community, Professional, Enterprise, Ultimate, Corporate
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, try out 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:

  <span style="color: #339966;" data-mce-mark="1">mytemplate</span>:                # IMPORTANT: this is the unique_template_id
    name:           <span style="color: #339966;" data-mce-mark="1">mytemplate</span>    # 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

Share via

Related Articles