#234

Product support

Get help in the plugin support forum.

Categories

  • Developer Tools
  • Miscellaneous
  • Utility

Requirement

This plugin requires the RainLab.Blog plugin.

What does it do?

Featured files extends the RainLab.Blog plugin with a possibility to upload featured files to every blog post.

This can be handy to attach documents or sound-files (for podcasting) etc to your blog posts.

Install the RainLab.Blog plugin

  • First you have to make sure you have added the RainLab.Blog plugin to your project.
  • Then add the Hambern.Featuredfiles plugin.
  • Now you'll find a file field in the manage tab when you add or edit a blog post.

Pick a field type and allowed files

The default mode of the plugin is a fileupload field that allows all kinds of files. However, if you prefer to use the media finder you can change this in the settings.

How to use it in a blog post page

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

{% if post.featured_files.count %}
  {% for file in post.featured_files %}
    <a href="{{ file.path }}">{{ file.file_name }}</a>
  {% endfor %}
{% endif %}

First you check to see if you have any files... Then you output them onto your page.

  • Found the plugin useful on 5 May, 2017

    Never thought of this, very good idea!

  • Found the plugin useful on 1 Dec, 2016

    Useful and work well

  • Found the plugin useful on 7 Oct, 2016

    Small but very useful plugin. Where is git repository of plugin?

1.0.5

Unmade the buggy mediafinder gimmick and deletion added

Oct 31, 2016

1.0.4

Makes it possible to pick field and file types

Oct 31, 2016

1.0.3

Now allows all filetypes

Oct 07, 2016

1.0.2

Bug fixes

Mar 01, 2016

1.0.1

First version of Featuredfiles

Mar 01, 2016