getgrav / getgrav/grav-plugin-langswitcher

Select menu as a configurable display option

Open
#74 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
31
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Thank you for this useful plugin.

I am not very Grav savvy but managed to modify the code to get a `` menu instead of an `` list. It brought me to the idea to propose it to you as an configurable option.

These are the two files I copied from /user/plugins/langswitcher/templates/partials to /user/themes/[theme]/templates/partials and modified the code to look as follows:

![grav-langswitcher-logic-html-twig](https://user-images.githubusercontent.com/17728384/209677082-9ab3bed9-a3ca-44c9-a84a-ffc0713c5453.png)

![grav-langswitcher-html-twig](https://user-images.githubusercontent.com/17728384/209681947-316893d8-c4a6-4a6f-86c8-10259f4073e7.png)

However, I don't know how to add the option to the UI, therefore this feature request.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the two template partials under /user/plugins/langswitcher/templates/partials and the corresponding copies under /user/themes/[theme]/templates/partials. Trace how the plugin exposes configuration in its UI, then make the list/select choice configurable while preserving the existing rendering option. Done means users can choose the display style without manually copying or modifying theme templates.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.