Font-family parameter in group[]

I have a Component setup using a group[] to create a looper:

{
“lineItems” : {
“type” : “group[]”,
“label” : “Line Items”,
“itemLabel” : “{{index}}. {{title}}”,
“params” : {
“title” : {
“type” : “text”,
“label” : “Content”,
“initial” : “”
},
“textColor” : {
“label” : “Colour”,
“type” : “color-pair”,
“initial” : {
“base” : “#231f20”,
“alt” : “#f05e5e
}
},
“fontFamily” : {
“label” : “Family”,
“type” : “font-family”,
“initial” : “inherit”
},
“fontWeight” : {
“label” : “Weight”,
“type” : “font-weight”,
“initial” : “inherit”
}
}
}
}

I’ve created the looper and the the other parameters display as expected. But when call the font-family parameter

{{dc:looper:field key=‘fontFamily’}}

Instead of outputting the the selected font it outputs a string like

global-ff:99f03dc2-e0b0-4348-b741-6edc0ad1d6f1

This string changes depending on which font is chosen, but it doesn’t load the correct font.

Is this a bug or have I set something up incorrectly?

Hi @rosstm,

Thanks for reaching out.
The type should be group not group[]. I would suggest you go through the following thread on a similar topic.

https://theme.co/forum/t/beta-5-2-0-parameter-groups/97557

Hope it helps.
Thanks

I’m using group[] as explained in your own documentation https://theme.co/docs/parameters#lists

That topic has nothing to do with what I asked.

Hello @rosstm,

To better assist you with your issue, may we ask for your WP access so we can check your element settings? You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Thank you.

No problem, I will add the login to this reply.

Hello, hope you are well. I see what’s going on, groups are not getting the same pre processing as regular strings. I will make that quick fix which will most likely go into the next release.

That’s great! Thanks

You are most welcome as always @rosstm.

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