This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Akhil
Akhil

I have called a component partial like this {% partial 'tvComponent::listHomeListTvOnVh1s' %} on page tv.html. Below is the component partial code.

             Now i want to call another another {% partial 'tvComponent::subListHomeListTvOnVh1s'  id="listHomeListTvOnVh1.id" %}. but its not working. 

{% if tvComponent.listHomeListTvOnVh1s %}
 {% for listHomeListTvOnVh1 in tvComponent.listHomeListTvOnVh1s %}
<h6 class="section-title clearfix" style="margin-top: 15px;" >
  <a href="{{ 'tv/tv-shows-id'|page({show_id: listHomeListTvOnVh1.alias}) }}">{{ listHomeListTvOnVh1.name }}</a>
  <a href="{{ 'tv/tv-shows-id'|page({show_id: listHomeListTvOnVh1.alias}) }}"> <span class="right read-more ">View More</span></a>
</h6>
<div class="row" id="tv-section">
  {% partial 'tvComponent::subListHomeListTvOnVh1s'  id="listHomeListTvOnVh1.id" %}
</div>
 {% endfor %}
 {% else %}
  <div class="row" id="tv-section">No data found.</div>
 {% endif %}

Last updated

Snirkum
Snirkum

As far as i know you have to call the partial in the page. The thing with calling partials in partials, you could end up in nesting and nesting and nesting and .. .. get it?

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.