kpitn / spree-movies

Add embed movie available to product

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Extension

How to install

script/extension install http://github.com/kpitn/spree-movies.git
rake db:migrate

add config.gem “formtastic” in environement.rb

How to use

  1. Go to configuration Tab > Video Type
  2. Add a new Video Type ex :
  • Name : Youtube
  • Embed Code :
<object width="[[WIDTH]]" height="[[HEIGHT]]"><param name="movie" value="http://www.youtube.com/v/[[KEYWORD]]"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/[[KEYWORD]]" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="[[WIDTH]]" height="[[HEIGHT]]"></embed></object>
  1. Go to product edition
  2. Choose Video
  3. Add a new Video ex :
  • name : “Name”
  • Video Type : “Youtube”
  • Keyword : “p8t41avFuCc”

About

Add embed movie available to product


Languages

Language:Ruby 100.0%