New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add locales to the home page #1981

Closed
eddiesigner opened this Issue May 29, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@eddiesigner

eddiesigner commented May 29, 2018

Describe the bug
I have a website in spanish and english, being spanish the default locale. Before the upgrade I was able to translate the content (title, slug and text) for the home page but now I can't because the button to choose a language is missing. I can translate the content from the index.md or the en.index.md files but not from the control panel.

This issue just happens on the home page. If I try to remove the default home page and create a new one using a custom 'Home page' type I get the same result and all the pages get lost :/

This is my home.yaml file (home fieldset):

title: Inicio
fields:
  text:
    type: textarea
    display: Texto que se muestra debajo del carrusel
    validate: required
    localizable: true
  bottom_picture_mobile:
    type: assets
    display: Imagen que se muestra hasta abajo de la página (Mobile)
    container: main
    folder: home
    max_files: 1
    validate: required | ext:jpg,jpeg,png
  bottom_picture_desktop:
    type: assets
    display: Imagen que se muestra hasta abajo de la página (Desktop)
    container: main
    folder: home
    max_files: 1
    validate: required | ext:jpg,jpeg,png
taxonomies: false

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Pages'
  2. Click on 'Home page'
    or
  3. Go to 'Pages'
  4. Create a new page
  5. Select type: 'Home'

Expected behavior
I would expect to see the locales button so I can switch between languages and modify the content accordly.

Screenshots
Just for the home page I cannot select the english locale because the button is missing:
screenshot-2018-5-29 panel de control vimaliving

But for different pages I can select both languages (spanish and english):
screenshot-2018-s5-29 panel de control vimaliving

Environment details:

  • Statamic Version: 2.9.4
  • Fresh Install or Upgrade: Upgrade
  • OS: macOS 10.13.4
  • Browser: Firefox Quantum
  • Web Server: Apache
  • PHP Version: 7.1.10
  • Addons installed: None

Additional context
This is my index.md file:

text: >
  Hay variaciones de los pasajes de Lorem Ipsum pero la mayoría SUFREN CIERTAS alteraciones en alguna manera.
bottom_picture_mobile: /assets/home/home-mobile-2.jpg
bottom_picture_desktop: /assets/home/home-desktop-2.jpg
title: Inicio
template: home
fieldset: home
mount: home-slider
id: ace0be7b-a658-4baf-9307-3ca4a5da2c54
@jasonvarga

This comment has been minimized.

Member

jasonvarga commented May 29, 2018

Nice find! The issue is that the button doesn't show up on the home page.

Fixed for next release.

@eddiesigner

This comment has been minimized.

eddiesigner commented May 29, 2018

Thank you!

@jasonvarga jasonvarga closed this May 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment