Jump to content

Remove unwanted system templates


manlio
 Share

Recommended Posts

Hi guys, I have a problem with some templates.

I don't know why but I have some templates (created by me) that are in the system templates. I wanna remove them, but I'm not able to do this.

image.thumb.png.ee22dc5e33035617f5ca494228f84085.png

I have tried something like this

$t = $templates->get("mytemplate");
$t->flags = Template::flagSystemOverride;
$t->flags = 0;
$templates->delete($t);
$fieldgroups->delete($t->fieldgroup);

It works and doesn't give any errors, but whenever I go into the admin backend template page it appears again (it seems to be regenerated).

Anyone knows how can I fix it?

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...