Coder Social home page Coder Social logo

Comments (5)

boazpoolman avatar boazpoolman commented on May 20, 2024 1

Yep that sounds like a plan.

So that would be an extra select input (dropdown) in this section:
Scherm­afbeelding 2024-03-08 om 10 18 42

And the values of that select input can be:

  • Disabled
  • Default language pathname
  • Other

And when somebody selects the Other option an extra text input field should show in which the user can put the path of their choice.

And yeah just have disabled be the default makes sense. That would make this backwards compatible as well.

@RomainGueffier Do you want to make this contribution?

from strapi-plugin-sitemap.

boazpoolman avatar boazpoolman commented on May 20, 2024

Hi @RomainGueffier

Thanks for submitting this feature request!
I think this can be a great addition to the plugin.

I'm wondering how much control the user needs for this value.
You're suggesting to have the hreflang="x-default" be the value from default locale pathname.
Though in the article I also read you might want to set it to be a language selection page.
Do you think this should be set globally (like the hostname), or should you be able to change the hreflang="x-default" per URL bundle?

from strapi-plugin-sitemap.

RomainGueffier avatar RomainGueffier commented on May 20, 2024

Glad you like the idea 🚀 ! I don't need the use case with a specific neutral page having language selector, but it should be done for sure.

I'm not sure how to make good UI/UX. As global option seems good to choose between:

  • disabled (default?)
  • a specific path
  • generate from default language pathname on every internationalised url bundles

No need for per-bundle settings if so.

What do you think?

from strapi-plugin-sitemap.

RomainGueffier avatar RomainGueffier commented on May 20, 2024

@boazpoolman deal! I will create PR soon. Do you have any default .vscode/settings.json or prettier config?

from strapi-plugin-sitemap.

boazpoolman avatar boazpoolman commented on May 20, 2024

The repo has eslint configured for all linting and code formatting.
If you install the eslint plugin in vscode you should get highlighting on warning & errors :)

from strapi-plugin-sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.