I have a custom form with ajax submission on my site and it works great. Handling the response on the site I’m able to use a template and find.page works as it should, I can pull data from wherever I want on the site. When I need to send an email I’m doing the same on the data.html.twig template, but find.page doesn’t seem to work at all. Is there a particular reason for that or should I do something different?
Interesting, how do you access site.yaml? so that means we have access to site, as well as grav variables, but not pages. In my case I had to access pages images so it was easier to just put the same images in the theme images folder.
@macyogi, It might be better to create a new post with your context. The former OP will probably no longer be around to mark it as solved when a solution gets provided. You might add a link to the new post.
Thank you for the suggestion.
Like @pamtbaau said, it’s been a long time, I’ve found a different solution to the problem and I don’t even remember what I did, to be honest. But I’ve marked that as solved, could be helpful for another time or someone else, although I can’t really try if it worked in my situation anymore.