webhoes Posted October 15, 2017 Posted October 15, 2017 Hello, I want to make some landing pages. For that I have created a landing-pages templates that hold landing-page as children. Each child I will use to target a specific keyword for google. How can I omit the parent url (landing-pages). So landing-pages/the perfect keyword for google/ wil be /the perfect keyword for google/ I use the the landing-pages template to keep the admin organised and not have a huge amount of pages under Home in the admin.
abdus Posted October 15, 2017 Posted October 15, 2017 Easiest way is to use urlSegments. Here's a case study from @ryan that details how you can implement this 1
clsource Posted October 15, 2017 Posted October 15, 2017 Maybe this could be used too http://modules.processwire.com/modules/process-jumplinks/ 1
adrian Posted October 15, 2017 Posted October 15, 2017 Multiple posts on this - lots of options amongst these. https://processwire.com/talk/topic/11337-resolved-hiding-parent-url-error/https://processwire.com/talk/topic/3275-hide-parent-page-from-url/https://processwire.com/talk/topic/9692-hidemask-a-parent-page-from-front-end/https://processwire.com/talk/topic/5448-remove-parents-from-url/http://processwire.com/talk/topic/1799-routes-and-rewriting-urls/ 3
webhoes Posted October 15, 2017 Author Posted October 15, 2017 I already found most of these links. As far as I can see the make it so that a page has 2 routes. It's orginal and the alternative I want just one route (the one without the parent). I also want the to be without the parent in the sitemap.xml.
kongondo Posted October 15, 2017 Posted October 15, 2017 1 hour ago, webhoes said: I want just one route (the one without the parent) The links pasted by others above should help with this. To be more specific have a look at this post: from the sub-section /site/templates/includes/hooks.php as also discussed here. 1
webhoes Posted October 15, 2017 Author Posted October 15, 2017 Thanks @kongondo I will have a closer look again.
gmclelland Posted October 18, 2017 Posted October 18, 2017 Here is a request for something similar https://github.com/processwire/processwire-requests/issues/118
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