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.17k stars 413 forks source link

[Bug]: Can't add WYSIWYG option to postOptions #1119

Open joshpetit opened 2 years ago

joshpetit commented 2 years ago

Operating system

Arch Linux

Publii version

0.39.1-1

Post editor

WYSIWYG editor

Bug description

Adding WYSIWYG option as a post option doesn't show the editor in the side bar

Steps to reproduce

Add this option to postConfig in the editorial-2 theme

        {
            "name": "postExcerptText",
            "label": "Thing",
            "value": "wide",
            "type": "wysiwyg"
        },    

Go to the "Other options" category in the WYSIWG editor sidebar, the label will show up but not the editor.

Relevant log output

No response

bobmitro commented 2 years ago

Hey Josh,

This is not a bug. The post configuration options support five element types:

More about it can be found here: https://getpublii.com/dev/post-config-options/

joshpetit commented 2 years ago

Oh ok I see, so would this be a valid feature request? The thing I'm trying to do is allow posts to have a custom excerpt description.