This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko 6 years, 10 months ago.
- Topic
Hi,
I am working on the frontend of orocommerce. I dont know how to check the last item in embedded_list.this is my code:
12345678910111213141516- '@addTree':items:blog_tags_container:blockType: containerblog_tags:blockType: embedded_listoptions:items: '=data["tag_provider"].getAll()'use_slider: falseblog_tags_item:blockType: containertree:page_content:blog_tags_container:blog_tags:blog_tags_item: ~123456789101112131415161718192021222324{% block _blog_tags_widget %}{% set attr = layout_attr_defaults(attr, {'~class': ' blog-tag'}) %}<div {{ block('block_attributes') }}><div class="tag">Tag: {{ block_widget(block, {attr: attr}) }}</div></div>{% endblock %}{% block _blog_tags_item_widget %}{% set attr = layout_attr_defaults(attr, {'~class': ' blog-tag-item'}) %}<div {{ block('block_attributes') }}><a href="item.id}) }}" rel="nofollow">{{ item.name }}</a>// Want to check if last item here</div>{% endblock %}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The forum ‘OroCommerce’ is closed to new topics and replies.