250

Product support

Visit this product's website for support.

Categories

Featured images extends the RainLab.Blog plugin with a possibility to upload featured images to every blog category.

Requirements

Installation

First you have to make sure you have added the RainLab.Blog plugin to your project. Then add the Ribsousa.Featuredimages plugin. Now you'll find a file field in the Blog Category when you add or edit a Category.

How to use it in a blog post or category page

To view your featured images you find them by adding .featured_images to your category-object, just like you would on your featured_images. As an example:

{% for category in post.categories %} {# loop blog post.categories #}
    {% if category.featured_images.count %} {# check to see if your category have any images #}
        {% for image in category.featured_images %} {# loop category.featured_images display images #}
            <img src="{{ image.path }}" alt="{{ image.file_name }}" />
        {% endfor %}
    {% endif %}
{% endfor %}

That's all, folks!

  • Found the plugin useful on 3 Aug, 2021

    Thanks for your plugin. I currently have a problem for the Featured Image plugin. I can't upload any images using the upload feature on the " blog > manage " page.

    This code appears when an error occurs:

    Upload error <html> <head> <title>404 Not Found</title> </head> <body> <center><h1>404 Not Found</h1></center> <hr> <center>nginx</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->

    I checked the octobercms event log, I got the following notes: https://prntscr.com/1icvwcb

  • Found the plugin useful on 3 Mar, 2017

    Thank you! I've been searching for such a plugin for a long time!

1.0.1

First version of Featuredimages

Feb 28, 2017