GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: Posts-dropdown / tags-dropdown UI cannot be seen or edited in Publii app #1509

Open kryptot7 opened 1 month ago

kryptot7 commented 1 month ago

Operating system

Windows 11 x64

Publii version

Version: 0.45.2 (build 16609)

Post editor

None

Bug description

I added a new config variable of type "posts-dropdown" to my theme by overriding config.json. However, while the variable shows up in the Publii app, it has no dropdown:

image

image

This bug happened when I added the variable to the postConfig, and also to the tagConfig. This variable of type "number" renders just fine:

image

image

This issue also seems to apply to "tags-dropdown": image image

All of the above seems to apply to the Theme tab's global settings area as well... image

Steps to reproduce

  1. Open Publii. Ensure your blog has posts and tags.
  2. Override your theme. I used the "Taste" theme.
  3. Add a variable to the postConfig or tagConfig of type "post-dropdown" or "tags-dropdown".
  4. Generate preview files.
  5. Close and re-open the Publii app.
  6. Try to edit the values for one of the posts or the global settings...but unfortunately, you cannot, because there is no dropdown.

Relevant log output

The logs did not contain any errors.