Skip to content

portonefive/how-to-videos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How To Videos

Display an admin page in the backend of LaraPress, with a grid of videos from a Wistia Project.

Installation

composer require portonefive/how-to-videos

Publishing Configuration Files

In your console you'll run the following command to publish the config, view and css files;

php artisan vendor:publish

Setting Required Config Values

In order to access the Wistia account, you'll to define the HTV_WISTIA_API_KEY in your config or env file.

This can be found under wistia.com > Account > Advanced > API Access.

  1. Click New Token
  2. Input the project name for Token nickname
  3. Check Read all data
  4. Click Create Token

Next, you'll to define the HTV_WISITIA_PROJECT_ID, which is the project we want to pull videos from. This can be found by navigating to the project you want and copying the id from the url.

For this url, https://portonefive.wistia.com/projects/5jihj33txi we want 5jihj33txi.

Menu Position

You can also set the WordPress menu position weight in your config or env files with the HTV_ADMIN_MENU_POSITION key.