Jump to content

Other output of a field when Listing is featured


PeterD
Go to solution Solved by Alejandro,

Recommended Posts

Yes, this is something individual, but somehow I'm not getting anywhere:

I want to implement 2 text (field) outputs that depend on the featured status (and therefore paid).

If Listing is Featured, then Text 1 should be output, if non Featured then Text 2.

I have tried it this way, but it does not work.  Here is my attempt:


<?php if ($listing['Listing']['featured']); ?>



text1




<?php endif;?>

<?php if ($listing['Listing']['nonfeatured']); ?>



text2



<?php endif;?>


Yes, this would also work at the end maybe with an else command I wanted to try it this way. I would be grateful for some tips for the loop

 

Edited by PeterD
Link to comment
  • PeterD changed the title to Other output of a field when Listing is featured
×
×
  • Create New...