Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-25 12:10:46

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

[es-es] Cuando una sección no tiene articulos

Amigos.
¿ Cúal es la manera de indicar que no hay articulos asignados a una determinada “sección” (no categorías) ?

Offline

#2 2009-09-26 05:04:21

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: [es-es] Cuando una sección no tiene articulos

Pude resolverlo con este plugin: mdn_count

<txp:variable name="total" value='<txp:mdn_count section="#" />' />
<txp:if_variable name="total" value="0">
NO HAY ARTICULOS CARGADOS EN ESTA SECCION
</txp:if_variable>

Offline

#3 2009-09-26 14:45:38

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [es-es] Cuando una sección no tiene articulos

Otras posibilidades:

<txp:variable name="total" value='<txp:article limit="1"  />' />
<txp:if_variable name="total" value="0">
NO HAY ARTICULOS CARGADOS EN ESTA SECCION
</txp:if_variable>

O con el plugin chh_if_data

<txp:chh_if_data>
  <txp:article ... />
<txp:else />
  No hay artículos
</txp:chh_if_data>

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB