Giter Club home page Giter Club logo

movies's Introduction

90s Movie Demo Site

This repo contains a Drupal site for teaching Views Custom Plugins. A reference database is included in this repo. This project uses lando to build the local environment so you can spin up a copy in minutes.

picture

Presentation

Local Dev

Requirements for local setup

Spinning up local env

  • Clone this repository https://github.com/nJim/movies.git movies
  • Start Docker and Lando lando start
  • Download required packages lando composer install
  • Import reference database lando db-import database/database.sql.gz
  • View the local site: http://movies.lndo.site

Notable example views plugins

This repo includes a variety of examples Views Plugins to demonstrate what is possible with custom fields, filters, sorts and more. All custom plugins appear in the movie_views module. Some notable examples include:

  • Movie Poster Render: Uses the plugin render method to access the node object and build a render array. Includes custom filed options to alter the rendered objects.
  • Word Count Field: Employs a sql formula to calculate the number of words in a field. Also includes an example of performing this operation in the render method.
  • Movie Profit Field: Example of using joins and formulas in a query to perform a calculation. Then uses simple PHP to control how the new field is rendered.
  • Excited Title Field: Simple example of adding a where clause to the query.

movies's People

Contributors

njim avatar

Stargazers

Essra avatar RK avatar Jaime avatar Gonzalo Guevara avatar Oliver Davies avatar Eric Guerin avatar Jenna Tollerson avatar Lera Atwater avatar Max Starkenburg avatar Irina Ten avatar Bo avatar Miles avatar JD Leonard avatar

Watchers

James Cloos avatar Yuen Chan avatar  avatar

movies's Issues

Feature: TMDB API

Connect to The Movie Database through their API. Use PHP endpoint. Add very basic error handling.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.