I have a field:
class HomePage(Page):
featured_image = FileField(verbose_name=_("Featured Image"),
upload_to=upload_to("main.HomePage.featured_image", "homepage"),
format="Image", max_length=255,
null=True, blank=True)
In my templates, what do I do to get the featured_image to show? I've
loaded mezzanine_tags
According to the Blog Post example (referred to it, because devs here love
pointing to source code as examples), this is how it was done:
<p><img class="img-responsive" src="{{ MEDIA_URL }}{% thumbnail
blog_post.featured_image 600 0 %}"></p>
This is what I have:
<div class="parallax"><img src="{{ MEDIA_URL }}{% thumbnail
page.homepage.featured_image 600 600 %}"></div>
But it doesn't work. According
to: http://mezzanine.jupo.org/docs/utilities.html#thumbnail, the thumbnail
should work on my situation. Its not working,
Anything I'm missing?
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.