<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to print nested content in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942419#M42079</link>
    <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/505816"&gt;@Mrafey&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question! I'd like to invite some of our community members to the conversation &amp;nbsp; hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5572"&gt;@arinker&lt;/a&gt;&lt;/SPAN&gt;, do you have any tips you can share with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/505816"&gt;@Mrafey&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 18:30:27 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-03-12T18:30:27Z</dc:date>
    <item>
      <title>How to print nested content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/941773#M42078</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I have the following structure in the design manager:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2024-03-11 at 5.26.13 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/112789iCB859433FE3C1551/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2024-03-11 at 5.26.13 PM.png" alt="Screen Shot 2024-03-11 at 5.26.13 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The &lt;STRONG&gt;slides&lt;/STRONG&gt; &lt;STRONG&gt;field group&lt;/STRONG&gt; has repeater option set to 3. So it prints out 3 questions in which each has a &lt;STRONG&gt;question text property&lt;/STRONG&gt; followed by an &lt;STRONG&gt;answers group field&lt;/STRONG&gt; which has its repeater options set to 3 as well which outputs 3 answers for a given question.&lt;BR /&gt;&lt;BR /&gt;My issue is I am having a hard time figuring out how to access those nested answers for each question.&lt;BR /&gt;&lt;BR /&gt;This is what I have thus far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="quiz"&amp;gt;
	&amp;lt;form class="quiz-form"&amp;gt;
		
		{% for item in module.slides %}
		&amp;lt;div class="question"&amp;gt;
			&amp;lt;h3&amp;gt;{{item.question}}&amp;lt;/h3&amp;gt;
			  {% for answer in slides.answers %}
			    &amp;lt;label&amp;gt;Print&amp;lt;/label&amp;gt;
			    &amp;lt;input type="radio"/&amp;gt;
			  {% endfor %}
		&amp;lt;/div&amp;gt;
		{% endfor %}
		
		&amp;lt;div class="submit-btn"&amp;gt;
			&amp;lt;input type="submit" class="button"/&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Based on what I have setup 3 radio buttons with the label Test should print out for each question, but that doesn't seem to happen. I am still new to HubL and I feel I am doing the nesting incorrectly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Some help regarding this would be great!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 21:42:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/941773#M42078</guid>
      <dc:creator>Mrafey</dc:creator>
      <dc:date>2024-03-11T21:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to print nested content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942419#M42079</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/505816"&gt;@Mrafey&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question! I'd like to invite some of our community members to the conversation &amp;nbsp; hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/61659"&gt;@Stephanie-OG&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5572"&gt;@arinker&lt;/a&gt;&lt;/SPAN&gt;, do you have any tips you can share with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/505816"&gt;@Mrafey&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:30:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942419#M42079</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-03-12T18:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to print nested content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942439#M42080</link>
      <description>&lt;P&gt;This should do it. Within the loop, you access the fields for each answer group with {{ answer.&amp;lt;fieldname&amp;gt; }}.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for answer in slides.answers %}
  &amp;lt;label&amp;gt;{{ answer.answer_label }}&amp;lt;/label&amp;gt;
  &amp;lt;input type="radio" name="{{ answer.answer_name }}" value="{{ answer.answer_value }}"/&amp;gt;
{% endfor %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:51:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942439#M42080</guid>
      <dc:creator>MattPickle</dc:creator>
      <dc:date>2024-03-12T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to print nested content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942441#M42081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/505816"&gt;@Mrafey&lt;/a&gt;&amp;nbsp;- if you hover over the "Slides" field group and click on Actions &amp;gt; Copy Snippet, it should give you the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But basically if Slides is a repeater, when you have&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for item in module.slides %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you're now within "item", so to get the Answers you would need to have:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% for answer in item.slides %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this should work:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;div class="quiz"&amp;gt;
	&amp;lt;form class="quiz-form"&amp;gt;
		
		{% for item in module.slides %}
		&amp;lt;div class="question"&amp;gt;
			&amp;lt;h3&amp;gt;{{ item.question }}&amp;lt;/h3&amp;gt;
			  {% for answer in item.answers %}
			    &amp;lt;label&amp;gt;{{ answer.answer_label }}&amp;lt;/label&amp;gt;
			    &amp;lt;input type="radio"/&amp;gt;
			  {% endfor %}
		&amp;lt;/div&amp;gt;
		{% endfor %}
		
		&amp;lt;div class="submit-btn"&amp;gt;
			&amp;lt;input type="submit" class="button"/&amp;gt;
		&amp;lt;/div&amp;gt;
	&amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that helps!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:54:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942441#M42081</guid>
      <dc:creator>Stephanie-OG</dc:creator>
      <dc:date>2024-03-12T18:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to print nested content</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942544#M42082</link>
      <description>&lt;P&gt;Thank you, it works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 20:45:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-print-nested-content/m-p/942544#M42082</guid>
      <dc:creator>Mrafey</dc:creator>
      <dc:date>2024-03-12T20:45:52Z</dc:date>
    </item>
  </channel>
</rss>

