Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2005-10-28 14:46:08
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: swf_if_empty
I just want to make a nice clean menu of articles within a section ordered by category with the names of the categories before the articles… No “empty” categories being visible of course.
How do I do this, anybody?
Offline
#32 2006-03-22 20:06:31
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: swf_if_empty
Is it possible to use swf_if_not_empty and swf_if_empty in the same form or article?
I’m using both in an article form, but it is not working. It shows the body if it’s present, but it doesn’t show anything if it’s not.
My form is roughly like this:
<code>
<txp:swf_if_empty field=“body”>
<p>There’s no body</p>
</txp:swf_if_empty>
</code>
<code>
<txp:swf_if_not_empty field=“body” minlength=“3”>
<p>There is body!</p>
<txp:body />
</txp:swf_if_not_empty>
</code>
Thank you!
Offline
#33 2006-03-25 07:53:23
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: swf_if_empty
Answering my own question, apparently this does not work. I removed the “if_not_empty” tag and it worked fine. I had to modify my markup a bit for it to work, though.
Offline
Re: swf_if_empty
Nell, ¿Cómo hiciste para utilizar “swf_if_empty” y “swf_if_not_empty” y que ambos funcionase?.
Saludos.
Offline
#35 2006-09-13 22:52:57
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: swf_if_empty
Hola Rigel,
Déjame consultar el sitio porque tiene tiempo que lo hice y no recuerdo bien. Te contesto más tarde :)
Offline
#36 2006-09-13 23:45:31
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: swf_if_empty
No encuentro el sitio donde tuve este problema, creo que al hacer un cambio eliminé esa forma. Recuerdo que no hubo forma de usar ambos tags en la misma forma y tuve que cambiar mi html para no necesitar uno de estos tags.
No sé si sea contra las reglas escribir en español en este foro. Te sugiero que en el foro de español pongas un post con el problema específico que tienes, con el html y todo, y te ayudo a resolverlo, o tal vez alguien más encuentre una solución.
Saludos!
Offline
Re: swf_if_empty
‘repackaged this plugin and hosted at Textpattern Resources in case anyone’s been looking for it (I certainly was)…
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#38 2007-04-06 16:26:30
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: swf_if_empty
does anybody know where to find this plugin? I can’t find any valid download link…
Last edited by feragnoli (2007-04-06 16:28:04)
what was that again…?
Offline
Offline
#40 2008-03-26 12:50:53
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: swf_if_empty
swf wrote:
it should be available again at http://woods-fehr.com/txp/3/if-empty
i haven’t updated it in so long I didn’t realize that there was still interest.
as there is still no built in txp:if_body tag (that would work like txp:if_excerpt), yes there is still interest.
And I did not find another plugin to do the job for the moment.
But http://woods-fehr.com seems to be an empty site… Every link leads to a blanc page
Any chance to have this plugin back ?
Last edited by Niconemo (2008-03-26 12:52:12)
Nico
Offline
#41 2010-07-22 23:47:16
- gfdesign
- Member

- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: swf_if_empty
Where do I find this plug in ?
Thanks.
Offline
Re: swf_if_empty
No idea, but you may easily replace its functionality with smd_if (a must-have in your TXP toolset) or chh_if_data.
Offline
#43 2010-07-23 11:04:44
- gfdesign
- Member

- From: Argentina
- Registered: 2009-04-20
- Posts: 401
Re: swf_if_empty
Gracias Maniquí
Habia olvidado que chh_if_data hace lo que necesito.
Saludos
Offline