Tenzing Posted May 30, 2023 Share Posted May 30, 2023 I have a page which that gets arguments from urlSegments: mysite.com/thepage/param1/param2/param3/ I need to use $render_results = $thepage->render() in a different template... but what I really want is something like: $render_results = render(/thepage/param1/param2/param3) Link to comment Share on other sites More sharing options...
Robin S Posted May 31, 2023 Share Posted May 31, 2023 Welcome to the PW forums @Tenzing ? You can achieve this by setting the URL segments you want to $input before you render the page. E.g. $input->urlSegment1 = 'foo'; $input->urlSegment2 = 'bar'; echo $thepage->render(); 2 Link to comment Share on other sites More sharing options...
Tenzing Posted June 14, 2023 Author Share Posted June 14, 2023 Thanks Robin! Perfect answer I was hoping to hear. I love Processwire! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now