Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

An OctoberCMS plugin that extends the rainlab.blog with the possibility of selecting a featured video

License

Notifications You must be signed in to change notification settings

glenn-de-backer/blogfeaturedvideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogFeaturedVideo

An OctoberCMS plugin that extends the rainlab.blog with the possibility of selecting a featured video

Setting a featured video

  • Edit your article
  • Go to the manage tab
  • Fill in your vimeo/youtube iframe content in the Featured Video textarea
  • Save

Usage

Show featured videos

{% if post.featuredvideo.hasVideo %}
    <div class="video-wrapper">{{ post.featuredvideo.iframe_content|raw }}</div>
{% endif %}

Show featured video images

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

License

  • LGPL v2.1

About

An OctoberCMS plugin that extends the rainlab.blog with the possibility of selecting a featured video

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages