We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace Tracker problem with custom_field access

Development and Programming

brianfidler's avatar
brianfidler
75 posts
16 years ago
brianfidler's avatar brianfidler

I’ve got product listings and it appears that my image and thumbnail names are being loaded into the same field of my database with a line break in between. I’m using Solspace Tracker to try and display the top 10 products viewed but only want to show the images.

The code looks like this:

{exp:tracker:entries weblog="products" custom_fields="image" limit="3" dynamic="off" interval="week" status="open"}
<li class="productimages"><a href="http://www.mysite.com/products/pages/{tracker:url_title}">/images/{tracker:field:image}</a></li>
{/exp:tracker:entries}

The problem is that because EE is storing both the image name and thumbnail name in the same field, {tracker:field:image} is returning this:

/images/images/09030t1.jpg 09030t1_thumb.jpg

Is there a way I can choose to return just the thumbnail image? Any solutions would be great.


I just created a new post related to this. It appears that the problem may be occuring because of how Files by Mark Huot saves the image and thumbnail names. If anybody has used Files before and has encountered something similar I’d appreciate any advice.

thanks, brian

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.