Comments (5)
Yep that sounds like a plan.
So that would be an extra select input (dropdown) in this section:
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.
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.
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.
@boazpoolman deal! I will create PR soon. Do you have any default .vscode/settings.json
or prettier
config?
from strapi-plugin-sitemap.
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)
- Update dependencies to mitigate vulnerabilities HOT 1
- Not working with strapi 4.11.5 HOT 2
- Support excluding sites by condition HOT 2
- how to exclude a specific url for sitemap HOT 9
- Allow URL translation sets for custom URLs HOT 2
- How to combine multiple content-types? HOT 2
- Server.js configuration for the sitemap plugin HOT 12
- Error when generating sitemap on Strapi 4.14.4 and Node v18 HOT 2
- Multiple hostnames/host profiles HOT 1
- Critical dependency: the request of a dependency is an expression HOT 5
- Allow relational fields be declared in url patern recursively HOT 3
- Bug: excludedTypes config setting doesn't seem to work HOT 5
- Bug: missing settings labels HOT 5
- Make the <xhtml:link> element in XML optional HOT 1
- feature request: pretty print option HOT 6
- Feature Request: i18n `prefix_except_default` strategy HOT 8
- Sitemap Breaks When Exceeding Limit and Strapi Port Differs from Default HOT 4
- Does not work with ADMIN_PATH and STRAPI_ADMIN_BACKEND_URL HOT 1
- Add extension points / hooks. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi-plugin-sitemap.