2

How can I avoid local specific templates? I'd like just to use one template for all languages.

My current template structure is extending layouts/_base, and layout/_site [similar to happylager demo] and I have a template called 'help' but i dont want to set 'fr/help', 'es/help'

2

The best solution is to use sections / entries for ALL of your templates. This not only allows to automatically route each local's page URL to a single template, it also makes it possible to set local specific slugs for each entry. You might not care for translated URLs, but Google does.

So what I recommend is to restructure your setup a bit, add a bunch of singles or even better, a structure named "pages", and set the path to your templates in the section settings.

  • Do you mean i cant use a single template for locales if I am extending from a base? Section is specifying only one template. "help" is section name/handle. Template is "help/_entry" – joomkit Oct 9 '15 at 16:25
  • Not sure I can follow your first sentence, what do you mean with "extending from a base". – carlcs Oct 9 '15 at 18:00
  • "Section is specifying only one template" – that's how it should work. You point all of this section's entry requests (any locale !!) to that template, isn't this what you're after? All locales, one template? – carlcs Oct 9 '15 at 18:00

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.