2017 © Pedro Peláez
 

craft-plugin lists

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

image

kuriousagency/lists

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  • Thursday, May 17, 2018
  • by Kurious
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 89 % Grown

The README.md

Lists plugin for Craft CMS 3.x

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc., (*1)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 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 kuriousagency/lists
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Lists., (*6)

Lists Overview

This is a plugin that allows you to create lists of elements. Lists can contain a mixture of element types., (*7)

Using Lists

Lists come with 2 predefined list types: Favourites & Wishlists., (*8)

Favourites is a single list that contains products., (*9)

Example Form



{{ csrfInput() }} {% if currentUser and product.id in craft.lists.favourites.ids() %} {% elseif currentUser %} {% endif %}

Variables

get an element criteria model of favourites:, (*10)

craft.lists.getFavourites(userId)

if no user id is passed in then the current user will be used., (*11)

get an array of wishlists:, (*12)

craft.lists.getWishlists(userId)

get lists:, (*13)

craft.lists.getLists(type, userId)

type is a string of whatever you want the list type to be?, (*14)

check to see if a product is in the favourites list:, (*15)

craft.lists.isFavourite(productId, userId)

check to see if an element is in a list:, (*16)

craft.lists.isInList(type, elementId, userId)

if no user id is passed in then the current user will be used., (*17)

Lists Roadmap

Some things to do, and ideas for potential features:, (*18)

  • Might have a cp interface to see the lists?

Brought to you by Kurious Agency, (*19)

The Versions

17/05 2018

dev-master

9999999-dev

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft lists

17/05 2018

dev-develop

dev-develop

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft lists

17/05 2018

1.0.1

1.0.1.0

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft lists

17/05 2018

1.0.0

1.0.0.0

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft lists

17/05 2018

0.0.1

0.0.1.0

Allow users to add elements to a list: Product Favourites, Wishlists, Bookmarks, etc.

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft lists