This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

moshem17556
moshem17556

I am having trouble getting theme customization form fields to show up in the backend when I use a separate theme customization file. This is what I did. In my theme.yaml file -- I have the following code: form: config/fields.yaml. That works to get the customization button to show up in the backend.

However, I'm not 100% sure how to format the config/fields.yaml file. Currently, this is how I have it set up:

form:
  fields:
    layout:
      label: Layout
      comment: Choosed between a boxed or wide layout.
      type: dropdown
      options:
        stretched: Stretched
        boxed: Boxed

But nothing shows up.

I tried taking out the 'form:' -- still nothing shows up.

Am I doing something wrong?

JeffGoldblum
JeffGoldblum

Try putting your fields directly in your theme.yaml file instead of an external file. If that works, submit an issue to the repository if you think that the theme.yaml file should support external field definitions.

moshem17556
moshem17556

I found the solution -- I need to take out the first line of the code: form:

In other words, the code should look like this:

fields:
  layout:
    label: Layout
    comment: Choosed between a boxed or wide layout.
    type: dropdown
    options:
      stretched: Stretched
      boxed: Boxed
RustemHesenov
RustemHesenov

Thank you @moshem17556!

Your suggestion working is wery well.

I think this information is missing in the documentation and should be added asap!

JeffGoldblum

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.