Automattic / Automattic/babble

Ability to set a preferred display order for switcher links

Open
#109 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

Current display order (using `bbl_get_switcher_links`) is alphabetical based on language code. Which is a good, neutral starting point. But you can bet people will want it to sort in a particular order.

WPML offers drag-and-drop ordering:
http://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/

![Screenshot](http://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2013/05/drag-and-drop-language-order.png)

Maybe make the rows of the 'Available Languages' table sortable, à la 10up's Simple Page Ordering plugin:
http://wordpress.org/plugins/simple-page-ordering/

Contributor guide

Open the contributing guide

Research direction

Start by reading the bbl_get_switcher_links entry point and locating the “Available Languages” table implementation. Determine how a saved language order would affect the switcher output, then verify that the configured order is preserved when links are displayed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.