1

I am trying to set up a channel that uses different content for a series of Google Adwords landing pages.

I set up the channel template as /landing-pages/_entry

I'd like to remove the /landing-pages/ piece of the title

Ideally, I'd like short simple url, which is effectively the slug title, which would be something like /chef-jobs for this client.

What is the best way to achieve this with Craft? Redirects or Routing.

The routing method doesn't call the entry and just shows a blank template, how can I feed the route address across if I use this method?

Any help, much appreciated :)

2 Answers 2

4

You can either set the URL Format of the landing pages channel to {slug} (the same as your normal pages)

Or you could try putting the landing pages in the normal pages structure, but give them a new entry type so you can use different fields.

1
  • Many thanks, both answers are similar, but both helped. Much appreciated!
    – Pathfinder
    Aug 10, 2015 at 9:41
3

No redirects or custom routes needed, just set the URI to {slug} in your channel settings. The path to your template setting landing-pages/_entry is only necessary for Craft internally, it does not affect the URL.

1
  • Many thanks Carlcs :) Answer much appreciated.
    – Pathfinder
    Aug 10, 2015 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.