Wrong template directory after update
Permalink
Hi all,
I've started using C5 for the homepage of the organisation where I work. Loving it, but I've run into a weird little problem while trying to customize the autonav using templates. I copied and renamed header_menu.php and edited it to my liking, but I could choose it when selecting custom templates. After a while of troubleshooting I noticed that C5 wasn't looking for the file in /concrete/blocks/autonav/templates as I was expecting, but rather looked for it in /updates/concrete5.4.0.5/concrete/blocks/autonav/templates/
I've searched but haven't found this issue reported. Something must've went wrong with the updates, but no errors were reported. Though I had to manually change config/site.php and remove the old version info. Also, I do not know if this is relevant but I noticed that breadcrumb.php was missing the ending php-tag "?>" and vi reports that both breadcrumb.php and header_menu.php have partial last lines.
Any ideas how I can fix this and make C5 look for the templates in the appropriate dirs?
*edit*
I might add that I've not run into this problem before with any other templates or customizations.
I've started using C5 for the homepage of the organisation where I work. Loving it, but I've run into a weird little problem while trying to customize the autonav using templates. I copied and renamed header_menu.php and edited it to my liking, but I could choose it when selecting custom templates. After a while of troubleshooting I noticed that C5 wasn't looking for the file in /concrete/blocks/autonav/templates as I was expecting, but rather looked for it in /updates/concrete5.4.0.5/concrete/blocks/autonav/templates/
I've searched but haven't found this issue reported. Something must've went wrong with the updates, but no errors were reported. Though I had to manually change config/site.php and remove the old version info. Also, I do not know if this is relevant but I noticed that breadcrumb.php was missing the ending php-tag "?>" and vi reports that both breadcrumb.php and header_menu.php have partial last lines.
Any ideas how I can fix this and make C5 look for the templates in the appropriate dirs?
*edit*
I might add that I've not run into this problem before with any other templates or customizations.
A new core is installed in a different directory. After a while you end up having several cores but only the one specified in the config file is used.
This is usually not a problem as you should never ever modify any files within the concrete folder.
You must put these files in the root!
/blocks/autonav/templates/myTemplate.php