2017 © Pedro Peláez
 

craft-plugin autopop

Helps automatically populate entry content.

image

onedesign/autopop

Helps automatically populate entry content.

  • Tuesday, March 6, 2018
  • by onedesign
  • Repository
  • 2 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Autopop plugin for Craft CMS 3.x

Helps automatically populate entry content., (*1)


Requirements

This plugin requires Craft CMS 3.0.0-RC1 or later., (*2)

Installation

To install the plugin, follow these instructions., (*3)

  1. Open your terminal and go to your Craft project:, (*4)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*5)

    composer require onedesign/autopop
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Autopop., (*6)

Use

{# The initial entries to start with #}
{% set entries = craft.entries.section('news') %}

{# Returns an Element Query that includes all entries NOT in the `featuredNews` field for the passed `entry` #}
{% set populatedEntries = craft.autopop.entries({
  entries: entries,
  entry: entry,
  excludeFields: ['featuredNews']
}) %}

{# You can continue to refine this set by passing in additional arrays of entry `excludeIds` to exclude. #}
{% set populatedEntries = craft.autopop.entries({
  entries: populatedEntries,
  excludeIds: [5, 13]
}) %}

{# If you have an Entries field that may not have all of it's entries set, you can also easily "fill" all of the slots in that field. NOTE: You can't currently pass entries populated using autopop.fillField() through another autopop.entries(), because autopop.fillField() returns an Element Query with specific entry ids. Either make autopop.fillField() the last thing you pass entries through, or use in place of autopop.entries() #}
{% set filledEntries = craft.autopop.fillField({
  entries: populatedEntries,
  field: entry.featuredEntries,
  excludeIds: []
}) %}

Brought to you by One Design Company, (*7)

The Versions

06/03 2018

dev-master

9999999-dev

Helps automatically populate entry content.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft autopop

06/03 2018

1.0.1

1.0.1.0

Helps automatically populate entry content.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft autopop

02/03 2018

1.0.0

1.0.0.0

Helps automatically populate entry content.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft autopop