This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » if eq doesn't work, why ?...
expandshrink

if eq doesn't work, why ? recalcitrant picture or condition !!!

if eq doesn't work, why ? recalcitrant picture or condition !!!

Tuesday 01 October 2013 5:39:51 pm - 2 replies

Hi, 

For an unknown reason, my picture doesn't appear from the body part (a blog post in my backoffice)

Then, I tried to display that image with a condition in my template (tpl file) like this : 

{if eq( $user.name, 'Tarantino' )} <img src="http://www.movies.com/876-1-fre-FR/quentin.jpg" /> {/if}

but it's still doesn't work, can you help me plz ? Do you have any idea ?

$user.name is well equals to Tarantino because with a view I can display it.

Regards from France,

CB79

Wednesday 02 October 2013 9:12:02 am

Hello,

Is your image displayed if you remove the test ?

Yann

Wednesday 02 October 2013 4:03:06 pm

Hi Yann blunk.gif Emoticon

Incredible, it works today without changes...omg.gif Emoticon

Caches were yet purged before and after each operation.

Never mind... ^^' good, weird but good !

Have a nice day !

C B

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from