CMS Development

MattC47
Participant | Elite Partner
Participant | Elite Partner

Targetting module fields in a group within a template

SOLVE

Hi,

I am adding modules into a template layout and looking to set some predefined field values. This is working fine until I come across fields within a field group, where I can't seem to find a way to target them.

 

{% module "__module_key_objectives" path="/trial-sfx-theme/modules/SFX-text-feature-image", label="SFX-text-feature-image", 
  feature_content.heading="Key Objectives",
%}

 

Using the field group to identify doesn't seem to work, any ideas?

Thanks

 

0 Upvotes
1 Accepted solution
KajBob
Solution
Participant

Targetting module fields in a group within a template

SOLVE

so for your case it would be something like this:

 

feature_content = {
    "heading": "Key Objectives"
}

 

View solution in original post

3 Replies 3
KajBob
Solution
Participant

Targetting module fields in a group within a template

SOLVE

so for your case it would be something like this:

 

feature_content = {
    "heading": "Key Objectives"
}

 

MattC47
Participant | Elite Partner
Participant | Elite Partner

Targetting module fields in a group within a template

SOLVE

Ah that's worked great, many thanks for your help!

KajBob
Participant

Targetting module fields in a group within a template

SOLVE

yes, you need to pass it as an object I believe.  You can find the documentation for that here Using modules in templates (hubspot.com) under the field parameters section.