I have a custom extension that adds ‘testimonials’ functionality to M2. The path that I can access these testimonials in the frontend is /testimonials/index/index
. I’ve added a type
field to the testimonials where I can set it to either “reviews” or “customer letters”.
What I want to do is create two custom routes in this extension so that I can access in one the “customer reviews” through the /customer-reviews
path, and in the other the “customer letters” with the /customer-letters
path.
I’ve spent the last two days trying to figure this out and haven’t been able to get it working.
Can you please guide me through this? I’m a frontend developer trying to do some backend stuff.
Thank you.