# Grab Textarea Widget data from single blog post template

**URL:** <https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555>\
**Category:** CMS Development\
**Created:** [March 18, 2019, 3:27pm UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555 "2019-03-18T15:27:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![benji\_thecroc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benji_thecroc/32/31851_2.png) [@benji\_thecroc](https://community.hubspot.com/u/benji_thecroc)\
**Post date:** [March 18, 2019, 3:27pm UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/1 "2019-03-18T15:27:00Z")

</div>

Hi,

I have a banner in my blog template, in this banner there is a textarea widget declared like so -

`{% textarea "banner_top_text" label='Articles First Paragraph', value='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a urna quis lacus vehicula rutrum.', no_wrapper=True %}`

I was wondering how I could pull the data from this widget and display it in a block on the listing page where I pull in a post with the topic ‘featured post’, which currently looks like -

`{% set topic_posts = blog_recent_topic_posts('default', 'featured-post', 1) %}{% for topic_post in topic_posts %}<div class="featured-article"><div class="featured-image" style="background-image:url()"></div><div class="featured-content"><span>featured article</span><h4>{{ topic_post.name }}</h4><p>{{ topic_post.widget_data.banner_top_text.parameter }}</p><a class="btn btn-outline-primary" href="{{ topic_post.absolute_url }}">Learn more</a></div></div>{% endfor %}`

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [March 18, 2019, 6:31pm UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/2 "2019-03-18T18:31:32Z")

</div>

Hey [@benji\_thecroc](https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367)

Im no expert with export-to-template-context, but it maybe what you’re looking for.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fcms%2Freference%2Fhubl%2Fexport-to-template-context)**

I may be able to dig in alittle later to lend more of a helping hand.

---

<div class="post-metadata">

**Author:** ![benji\_thecroc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benji_thecroc/32/31851_2.png) [@benji\_thecroc](https://community.hubspot.com/u/benji_thecroc)\
**Post date:** [March 19, 2019, 9:23am UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/3 "2019-03-19T09:23:08Z")

</div>

Hey @Kevin-C

I have tried this method but I think because I’m trying to get the data from a blog post to a listing template it’s not working.

Thanks,

[@benji\_thecroc](https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367)

---

<div class="post-metadata">

**Author:** ![benji\_thecroc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benji_thecroc/32/31851_2.png) [@benji\_thecroc](https://community.hubspot.com/u/benji_thecroc)\
**Post date:** [March 19, 2019, 9:39am UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/4 "2019-03-19T09:39:57Z")

</div>

Hi @Kevin-C

Not to worries, you were correct. I was just using the wrong parameter for the content type I was trying to grab.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [March 19, 2019, 12:04pm UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/5 "2019-03-19T12:04:11Z")

</div>

Hey [@benji\_thecroc](https://community.hubspot.com/t5/user/viewprofilepage/user-id/54367)

Glad I could help!

Do you think you could post up youer solution? I am curious to see how you did it!

---

<div class="post-metadata">

**Author:** ![benji\_thecroc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/benji_thecroc/32/31851_2.png) [@benji\_thecroc](https://community.hubspot.com/u/benji_thecroc)\
**Post date:** [March 19, 2019, 12:08pm UTC](https://community.hubspot.com/t/grab-textarea-widget-data-from-single-blog-post-template/13555/6 "2019-03-19T12:08:46Z")

</div>

Sure.

So in my listing template I have the textare widget setup so it’s displaying in the template and is set when creating a new blog post using this syntax -

`<p>{% textarea "banner_top_text" label='Banner paragraph/Summary Content', value='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean a urna quis lacus vehicula rutrum.', export_to_template_context=True %}{{ widget_data.banner_top_text.value }}</p>`

And then within the Listing Banner module, which is located in the list template, I have this -

`{% set topic_posts = blog_recent_topic_posts('default', 'featured-post', 1) %}{% for topic_post in topic_posts %}<div class="featured-article"><div class="featured-image" style="background-image:url('{{ topic_post.featured_image }}')"></div><div class="featured-content"><span>featured article</span><h4>{{ topic_post.name }}</h4><p>{{ topic_post.widgets.banner_top_text.body.value }}</p><a class="btn btn-outline-primary" href="{{ topic_post.absolute_url }}">Learn more</a></div></div>{% endfor %}`

The summary text is contained within the paragraph tag.
