Forums / Setup & design / diable read more... when body is empty

diable read more... when body is empty

Author Message

Menno van Drunen

Friday 19 September 2003 10:44:41 am

I would like to disable the read more link under a intro text when the body is emty, how should i do this. (probably the answer is easy but i can not find it...)

Bjørn Kaarstein

Monday 22 September 2003 1:58:07 am

Try to use something like
{section show=ne($node.data_map.body.content.output.output_text, 0)}

<a href..... >read more...</a>

{/section}

Regards Bjørn

Thomas Brandl

Tuesday 23 September 2003 4:37:28 am

I need that too, having two problems:
1. I had no luck finding the length of a xml-field
2. {section show=ne($node.data_map.text.content,0)} doesn't work for me? You need a count?!

This worked for me:
{section show=ne($node.data_map.text.content|count_chars,0)}

cheers
t

Marco Zinn

Monday 03 November 2003 1:15:03 pm

Hi,
which version are you using?
There is a function or operator called "is_empty". I used that for the section show condition and it worked nicely.

Marco
http://www.hyperroad-design.com

Nils Sanders

Sunday 18 January 2004 9:05:16 am

I have the same problem but nothing posted here help me. The "read more" is still there )-:

I work with ezp 3.3-2 and tryed to fix the problem in the /node/view/line.tpl - is this wrong?

PLEASE HELP!

Anders F

Sunday 18 January 2004 12:04:47 pm

It's already in the forum:

http://www.ez.no/developer/ez_publish_3/forum/setup_design/read_more_link

It worked for me.

Nils Sanders

Sunday 18 January 2004 12:36:00 pm

Wow! Thank you Anders F. Now it works. I always put the code in the wrong template - grrr...