Twig Error: Value for argument "property" is required for filter "sum" in "__string_template__3732f0e3f8937e33e99030ed57e70e8a" at line 1079. Check in Debugger

Brands
{% set stackspublish = false %}
Mi Cuenta Empieza a invertir Empieza a invertir

© IN-DEF Todos los derechos reservados

{# ------------------------------------------------------------------ 1. DATOS — colección "brands", sin borradores, en el orden del admin ------------------------------------------------------------------ #} {% set brandFilters = [ { property: "draft", operator: "not-istrue", value: "", logic: "or" } ] %} {% set brandSorts = [ { property: "order" } ] %} {% set brandRows = cms.collection.objects("brands") | filterCollection(brandFilters) | sortCollection(brandSorts) %} {# El índice de la colección solo devuelve los campos indexados (id, title, header_img, seo_img, draft, order, img_bg_*, locations). Cargamos el objeto completo de cada marca para poder usar logo, header_description, feature_1..3, invest_from, av_return_year y portfolio_link. Con 3–6 marcas el coste es irrelevante. #} {% set marcas = [] %} {% for row in brandRows %} {% set marcas = marcas | merge([ row | merge(cms.collection.object("brands", row.id)) ]) %} {% endfor %} {% set totalSucursales = marcas | map(m => m.locations | default({}) | length) | sum %} {% set totalOperando = marcas | map(m => m.locations | default({}) | filter(l => l.status == 'Operando') | length) | sum %}
{# --------------------------- Encabezado --------------------------- #}
Nuestras marcas

Marcas internacionales operadas por INDEF

Traemos a Latinoamérica y Europa marcas internacionales con trayectoria comprobada y las operamos de principio a fin — selección de locales, aperturas, operación y reportes — para que inviertas en un negocio consolidado sin tener que operarlo.

{{ marcas | length }} Marcas
{% if totalSucursales %}
{{ totalSucursales }} Sucursales
{% endif %} {% if totalOperando %}
{{ totalOperando }} En operación
{% endif %}
{# ---------------------------- Rejilla ----------------------------- #}
{% for marca in marcas %} {% set locs = marca.locations | default({}) %} {% set operando = locs | filter(l => l.status == 'Operando') | length %} {% set enMexico = locs | filter(l => l.country == 'Mexico') | length %} {% set enEspana = locs | filter(l => l.country == 'España') | length %} {% set imgProp = marca.img_bg_1 ? 'img_bg_1' : (marca.header_img ? 'header_img' : 'seo_img') %} {% set resumen = marca.header_description | default('') | striptags | trim %} {% set portafolio = marca.portfolio_link is iterable ? (marca.portfolio_link.url | default('')) : (marca.portfolio_link | default('')) %}
{{ cms.render.image(marca, { w: 760, h: 476, fit: 'crop-focalpoint', fm: 'jpg' }, { collection: 'brands', property: imgProp, class: 'idf-marca__img', loading: 'lazy' } ) }} {% if enMexico or enEspana %}
{% if enMexico %}México{% endif %} {% if enEspana %}España{% endif %}
{% endif %} {% if marca.logo %} {{ cms.render.image(marca, { w: 420, fm: 'png' }, { collection: 'brands', property: 'logo', class: 'idf-marca__logo', loading: 'lazy' } ) }} {% else %}

{{ marca.title }}

{% endif %}

{{ marca.header_title | default(marca.title) }}

{% if resumen %}

{{ resumen | truncate(155, true) }}

{% endif %} {% if marca.feature_1 or marca.feature_2 or marca.feature_3 %}
    {% if marca.feature_1 %}
  • {{ marca.feature_1 }}
  • {% endif %} {% if marca.feature_2 %}
  • {{ marca.feature_2 }}
  • {% endif %} {% if marca.feature_3 %}
  • {{ marca.feature_3 }}
  • {% endif %}
{% endif %} {% if operando or marca.invest_from or marca.av_return_year %}
{% if operando %}
En operación {{ operando }} sucursales
{% endif %} {% if marca.invest_from %}
Inversión desde {{ marca.invest_from }}
{% endif %} {% if marca.av_return_year %}
Rendimiento anual prom. {{ marca.av_return_year }}
{% endif %}
{% endif %}
Ver marca {% if portafolio %} Ver portafolio {% endif %}
{% else %}

Todavía no hay marcas publicadas.

{% endfor %}
{# --------------------------- Cierre / CTA -------------------------- #}

Invierte en una marca que ya está operando

Elige el portafolio que se ajusta a ti, selecciona el número de acciones y un asesor te acompaña en el resto del proceso.

Empieza a invertir
{# ------------------------------------------------------------------ 2. DATOS ESTRUCTURADOS — ayuda a Google y a los buscadores de IA a entender que esta página es el índice de marcas de INDEF. ------------------------------------------------------------------ #}

Type your input data here

Campo necesario

Type your input data here

Campo necesario

Type your input data here

Campo necesario

Type your input data here

Campo necesario
{{ cms.assetsBody() }}