Custom fields in {exp:favorites:entries} tag not working
Posted: 22 April 2008 12:21 PM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2008-04-22

I try to Display a list with the recently favo items

<div class="highlights">
  <
ul>
{exp:favorites:entries weblog="my_weblog" limit="10"}
   
<li><a href="/index.php/V2/comments/{url}">
   
{if '{plaatje}'!=''}<img src="{plaatje}_thumb.jpg" alt="" />{/if}{if '{plaatje}'==''}<img src="20080325_weg_thumb.jpg" alt="{title}" />{/if}</a>
   <
div class="highlights-txt">
   <
h4><span><a href="/index.php/V2/comments/{url}">{title}</a></span></h4>
   <
p><a href="/index.php/V2/comments/{url}">{comment_total} COMMENTS</a> / {exp:favorites:entry_count entry_id="{entry_id}"}{favorites_count}{/exp:favorites:entry_count} x favo</p>
   </
div>
  </
li>
{/exp:favorites:entries}
 
</ul>

</
div>

What do I need to do to have the custom tags available within the favorites module? {plaatje} is not showing now

Profile
 
 
Posted: 23 April 2008 06:23 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

Hillnut,

Your conditional statement should look like this:

{if food == "pants"}<p>Favorite Food{food}</p>{/if}

When you remove the conditional, does the variable show? smile

 Signature 
Profile
 
 
Posted: 23 April 2008 07:41 AM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2008-04-22

When i remove the conditional it only displays the {plaatje} and not the value. Running EE 1.6.3 and the latest Favorites version

Profile
 
 
Posted: 23 April 2008 09:05 AM   [ Ignore ]   [ # 3 ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2008-04-22

Please close the issue. I reinstalled all and now everything is working fine. Tnx for the quick response

Profile
 
 
Posted: 23 April 2008 09:24 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

great! smile

 Signature 
Profile