Hello,
I am trying to use the template option on my site to make changes to the include/modules/content/index_nested/templates/tpl_cm_in_category_listing.php file.
I have modified it so that it does not show an image but only shows the text for the link... it works fine...
I am now trying to do the right thing and move it over to my templates folder so that I am not modifying the original code (obviously I am changing the original code back)
I am using v1.0.7.9 at the moment as I am not at a point where I can upgrade to the latest versions
I have moved the file into templates/gustavo/include/modules/content/index_nested/templates/ and I have also moved a copy of cm_in_category_listing.php onto the corresponding index_nested folder incase this makes a difference.
I have gustavo selected as my template in the store configuration.
Is there something else I need to do?
Help with Modifying code
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: Help with Modifying code
Delete cm_in_category_listing.php and move tpl_cm_in_category_listing.php up one level to templates/gustavo/include/modules/content/index_nested/tpl_cm_in_category_listing.php
Everything in the templates folders is a template you don't need (and in fact don't want) the second templates directory.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
- Portman
- Contributor
- Posts: 158
- Joined: Mon Mar 08, 2021 1:04 am
- Phoenix Version: v1.0.8.20
- Has thanked: 29 times
- Been thanked: 4 times
Re: Help with Modifying code
Thanks Heatherbell, I did look at this guide but I missed the part about not using the templates folder ... in looking at it again it jumped out straight away... *sigh*