Overriding confusion
Permalink
This is absolutely maddening, not to mention insanely time wasting - so I am hoping someone can point out that I am overlooking something simple.
I have a theme (Framework), and I am trying to override some of the elements and templates.
for example, I have copied
packages/c5box_framework/themes/framework/elements/footer.php
to
and a few other places I can't remember.
I have read as much as I could find on overrides...
https://www.concrete5.org/community/forums/customizing_c5/overriding...
https://documentation.concrete5.org/tutorials/override-almost-any-co...
https://www.concrete5.org/community/forums/customizing_c5/contributi...
https://legacy-documentation.concrete5.org/tutorials/customize-a-blo...
https://www.concrete5.org/community/forums/customizing_c5/overriding...
https://www.concrete5.org/community/forums/customizing_c5/override-p...
etc
But I still have not found the answer :(
To add a new template to the page_list block, which exists in
packages/c5box_framework/blocks/page_list/templates/
I simply added a new template to
application/blocks/page_list/templates/ (even thoug hit would make a lot more sense if it was in application/c5box_framework/blocks/page_list/templates/)
But the same reasoning does not apply to package themes
Can anyone please tell me where do I put the override files for a theme that is inside a package?
I have a theme (Framework), and I am trying to override some of the elements and templates.
for example, I have copied
packages/c5box_framework/themes/framework/elements/footer.php
to
application/elements/footer.php application/themes/elements/footer.php application/framework/elements/footer.php application/themes/framework/elements/footer.php application/c5box_framework/themes/framework/elements/footer.php application/c5box_framework/elements/footer.php themes/framework/elements/footer.php packages/c5box_framework/elements/footer.php application/themes/c5box_framework/elements/footer.php
and a few other places I can't remember.
I have read as much as I could find on overrides...
https://www.concrete5.org/community/forums/customizing_c5/overriding...
https://documentation.concrete5.org/tutorials/override-almost-any-co...
https://www.concrete5.org/community/forums/customizing_c5/contributi...
https://legacy-documentation.concrete5.org/tutorials/customize-a-blo...
https://www.concrete5.org/community/forums/customizing_c5/overriding...
https://www.concrete5.org/community/forums/customizing_c5/override-p...
etc
But I still have not found the answer :(
To add a new template to the page_list block, which exists in
packages/c5box_framework/blocks/page_list/templates/
I simply added a new template to
application/blocks/page_list/templates/ (even thoug hit would make a lot more sense if it was in application/c5box_framework/blocks/page_list/templates/)
But the same reasoning does not apply to package themes
Can anyone please tell me where do I put the override files for a theme that is inside a package?
So /package/package_name/elements/file.php you would be able to override, but /package/package_name/theme/theme_name/elements/file.php you would not. This is because it's included with $this->inc instead of View::element