Skip to content
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

Translate a page dropdown tree #190

Open
jkevingutierrez opened this issue Aug 24, 2020 · 0 comments
Open

Translate a page dropdown tree #190

jkevingutierrez opened this issue Aug 24, 2020 · 0 comments

Comments

@jkevingutierrez
Copy link

jkevingutierrez commented Aug 24, 2020

Found a bug, please fill out the sections below

Issue summary

Having a big page tree, the "Parent page" dropdown could be messy. Especially, if there are pages with the same name as children of different pages.

image

It would be great to have something similar to the PageChooserPanel to select the parent page.

If not possible, it would be great to make more visible the hierarchy in the dropdown. Something like:

image

How to reproduce?

Having something like

/   (TranslatableSiteRootPage)
    en/        (TransHomePage)
        subpage-1/    (TransLandingPage)
            subsubpage-1/    (TransLandingPage)
                mypage/    (TransLandingPage)
            subsubpage-2/    (TransLandingPage)
        subpage-2/    (TransLandingPage)
            subsubpage-1/    (TransLandingPage)
            subsubpage-2/    (TransLandingPage)

    es/        (TransHomePage)
        subpage-1/    (TransLandingPage)
            subsubpage-1/    (TransLandingPage)
            subsubpage-2/    (TransLandingPage)
        subpage-2/    (TransLandingPage)
            subsubpage-1/    (TransLandingPage)
            subsubpage-2/    (TransLandingPage)

If I want to translate en -> subpage-1 -> subsubpage-1 -> mypage to es it won't be clear in the "Parent page" dropdown where is the es -> subpage-1 -> subsubpage-1

It would also be good to have a default selected element in the "Parent page" dropdown, or show a "recommended page" help text. Maybe the logic used in WAGTAILTRANS_SYNC_TREE to copy pages in the correct location, could also be used to detect the default or the recommended Parent page?

Technical details

Python 3.8
Django==3.0.9
wagtail==2.10
wagtailtrans==2.1

@jkevingutierrez jkevingutierrez changed the title Parent page dropdown tree Translate a page dropdown tree Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant