Announcement

#1 2021-10-15 03:30:57

windracer
Member
St. Pete, FL
2014-12-28
388

12.0.0RC2: template overrides

I haven't looked for this in a while, but where did the admin page go where you can set template files to override templates in a theme?

I have some custom templates under template-extension and I can see them under Templates in the Local Files Editor plugin, but can't seem to find WHERE those templates are associated with the theme anymore.

I must be missing something obvious ...

Offline

 

#2 2021-10-15 14:26:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13603

Re: 12.0.0RC2: template overrides

in your local configuration, add:

Code:

$conf['show_template_in_side_menu'] = true;

Offline

 

#3 2021-10-15 15:52:09

windracer
Member
St. Pete, FL
2014-12-28
388

Re: 12.0.0RC2: template overrides

Ah, thanks, that did it!

Side note: I had to edit my config.inc.php file directly on my server. When I tried to save my changes via the Local Files Editor plugin, I got an error:

Code:

Parse error: syntax error, unexpected identifier "’" in /usr/local/piwigo/plugins/LocalFilesEditor/include/functions.inc.php(45) : eval()'d code on line 8

Wonder if this is related to my other issues since my PHP 8/server upgrade.

edit: no, I found the issue. I had this in my config file:

Code:

$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.(), \'’&$£@#~öùüéá!\[\]]+$/';

and apparently those additional special characters were causing the problem.

Last edited by windracer (2021-10-15 15:55:11)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact