The {alt_text} Assets tag works fine in a straight assets field. When I have an Assets field type within a Matrix field it just returns "{alt_text}" rather than the actual value.
Should this be working, am I doing something wrong?
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
Hi Tim,
It should work. Can you post your template code? (Wrap it in <pre><code> and </code></pre> so Get Satisfaction preserves the formatting.) -
-
{blog_images limit="1"}
<img src="{exp:ed_imageresizer image="{image_1}" maxWidth="272" href_only="yes"}" alt="{alt_text}"/>
{/blog_images}
"blog_images" is the Matrix field
"image_1" is is the first cell with celltype set to Assets
v2.3.1 - Build: date 20111017
Assets 1.1.3
Matrix 2.2.3.2 -
-
I was just looking at it here after I posted it.
It's href_only in Ed image sizer isn't it?
Going to have to find another way around that. -
-
-
-
Actually I take that back. This still does the same.
{blog_images limit="1"}
<p>{alt_text}</p>
{/blog_images}
-
-
Putting this for my future reference and anyone else who comes across this problem.
Asset fields in Matrix do return all the tags they should. Of course, I'd expect nothing less from P&T. Thanks for your help Brandon.
Ed Image Resizer writes width and height values into the img tag. In a fluid layout with images set to max-width="100%" this makes the height remains constant and not change in proportion to the width.
Using hrefonly="yes" in Ed Image Resizer solves this but doesn't return any of the other Assets data.
Looking for a workaround now. -
Loading Profile...


EMPLOYEE
