Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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>
Offline