8000 GitHub - akukral/craft-image-extractor: Extract every image from existing asset fields from an entry or field recursivley including nested matrix fields.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Extract every image from existing asset fields from an entry or field recursivley including nested matrix fields.

License

Notifications You must be signed in to change notification settings

akukral/craft-image-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Extractor

Extract every image from existing asset fields from an entry or field recursivley including nested matrix fields.

Requirements

This plugin requires Craft CMS 5.2.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Image Extrator”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require akukral/craft-image-extratcor

# tell Craft to install the plugin
./craft plugin/install image-extractor

Usage

In your Twig templates:

{% set entry = craft.entries.id(123).one() %}
{% set allImages = entry.getAllImages() %}

{% for image in allImages %}
    <img src="{{ image.url }}" alt="{{ image.title }}">
{% endfor %}

About

Extract every image from existing asset fields from an entry or field recursivley including nested matrix fields.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0