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 :)

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.

  • Many thanks, both answers are similar, but both helped. Much appreciated! – Pathfinder Aug 10 '15 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.

  • Many thanks Carlcs :) Answer much appreciated. – Pathfinder Aug 10 '15 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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