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.35k stars 419 forks source link

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

Open kryptot7 opened 6 months ago

kryptot7 commented 6 months 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.
SkypLabs commented 1 month ago

I encountered the exact same issue with version 0.46.1 (build 16918) on a GNU/Linux system.

dziudek commented 1 month ago

Hi,

I will check what happens and I will try to fix it in v.0.46.2 if possible

dziudek commented 1 month ago

I have checked and under post config the only available fields are:

Adding posts/tags/author dropdown here is more complicated (it also requires support on theme settings). I will consider it for v.0.47 as it is a bigger task to implement