[Campsite Support] image->has_image1

View: New views
2 Messages — Rating Filter:   Alert me  

[Campsite Support] image->has_image1

by phorum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: ybani
Link:  http://code.campware.org/phorum/read.php?8,6452,6452#msg-6452
--------------------------------------------------------------------------------

Dear Support,
 
Is this code possible ?
 
{{ if $campsite->image->has_image1 }}
         
         
         
  {{ /if }}        
 
 
or how to check if article has an image? Thanks++
 
Best Regards,

ybani

--
Sent from Campware Forums
http://code.campware.org/phorum

Parent Message unknown Re: [Campsite Support] image->has_image1

by Holman Romero :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi ybani !

Right sentence should look like this:

{{ if $campsite->article->has_image(1) }}

hope this helps.

best,



On 6/21/08, phorum@... <phorum@...> wrote:

> Author: ybani
>  Link:  http://code.campware.org/phorum/read.php?8,6452,6452#msg-6452
>  --------------------------------------------------------------------------------
>
>  Dear Support,
>
>  Is this code possible ?
>
>  {{ if $campsite->image->has_image1 }}
>
>
>
>   {{ /if }}
>
>
>  or how to check if article has an image? Thanks++
>
>  Best Regards,
>
>  ybani
>
>
>  --
>  Sent from Campware Forums
>  http://code.campware.org/phorum
>


--
/holman
LightInTheBox - Buy quality products at wholesale price