Parameters

Hi team,

I’m working on learning parmaters, and I’ve run into an issue I can’t figure out.

I’ve setup a component that is an image. When I have the parmaters set to:
{
“Image” : {
“label” : “Image”,
“type” : “image”,
“initial” : “http://gentlecreekdental.flywheelstaging.com/wp-content/uploads/2023/10/place-holder-image.png”,
“height” : 2
}

It works fine.

When I update it to add alt text, it doesn’t work anymore, but i’m not getting any errors. It doesn’t show the intiaial image and when I add an image, it doesn’t show either.

{
“setup” : {
“type” : “group”,
“label” : “Setup”,
“params” : {

“Image” : {
“label” : “Image”,
“type” : “image”,
“initial” : “http://gentlecreekdental.flywheelstaging.com/wp-content/uploads/2023/10/place-holder-image.png”,
“height” : 2
},
“AltText” : {
“label” : “Alt Text”,
“type” : “text”,
“initial” : “”,
“placeholder” : “SEO focused alt text”
}
}
}
}

Can you please advise?

Thanks,
Ashley

You can access this in my component “atoms”. and I’ve entered the component on my page “test”

Hello Ashley,

Thanks for writing in!

You may need to use lower case characters in your JSON code:

{
  "setup" : {
    "type"   : "group",
    "label"  : "Setup",
    "params" : {
      "image" : {
        "label"   : "Image",
        "type"    : "image",
        "initial" : "http://gentlecreekdental.flywheelstaging.com/wp-content/uploads/2023/10/place-holder-image.png",
        "height"  : 5
      },
        "alttext" : {
        "label"   : "Alt Text",
        "type"    : "text",
        "initial" : "",
        "placeholder" : "SEO focused alt text"
      }
    }
  }
}

Kindly let us know how it goes.

That didn’t work.

Hey Ashley,

Please check this out:

  • See the screenshots in the secure note below.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.