Attach custom attribute file to template
Permalink
I have created a custom attribute to attach a file (pdf) to a custom template of mine. What I need to know, is how can I display a link to this attached file within the code of the template. I'm guessing it's something similar to the way photos are brought in but I can't really find any documentation to get this working right. I appreciate the help!
$photo = $imgHelper->getThumbnail($c->getAttribute('photo'), 200, 130)->src;
So if your attribute is called "pdf", I think you'd want something like this:
I haven't tested this, though, so I'm not 100% sure it works.