Development

/plugins/sfVideoGalleryPlugin/README

You must first sign up to be able to contribute.

root/plugins/sfVideoGalleryPlugin/README

Revision 12120, 3.9 kB (checked in by praveenprasoon, 5 years ago)

--

Line 
1 = sfVideoGalleryPlugin =
2
3 == Overview ==
4
5 sfIconPlugin is a Symfony plugin. You can use it to associate one or more video (with thumbnail automatically created) to any persistent object present in your model.
6
7 == Requirements ==
8
9 The following plugin is required:
10
11  * [wiki:sfThumbnailPlugin]
12
13 The following plugins are optional:
14
15  * [wiki:sfLightboxPlugin]
16  * [wiki:sfModalBoxPlugin]
17  * [wiki:sfIconPlugin]
18
19 The idea for future version is to remove these dependencies and build lighter versions
20
21 == Installation ==
22
23 You can install sfVideoGalleryPlugin via PEAR (recommended) package manager or manually.
24
25 === PEAR installation ===
26
27  1. The easiest way to install sfVideoGalleryPlugin is to use PEAR package manager.
28
29 {{{
30 $ symfony plugin-install http://plugins.symfony-project.com/sfVideoGalleryPlugin
31 }}}
32
33  Alternatively, if you don't have PEAR installed, you can download the latest package attached to this plugin's wiki page and extract it under your project's `plugins/` directory. You will also have to copy the contents of the `myproject/plugins/sfIconPlugin/web/` directory into a `myproject/web/sfIconPlugin/` directory.
34
35  2. Now clear the cache with symfony clear-cache command to enable the autoloading to find the new classes:
36
37 {{{
38 $ symfony cc
39 }}}
40
41  3. Rebuild the database and the model
42
43 {{{
44 $ symfony propel-build-all
45 }}}
46
47 == Configuration ==
48
49 The following steps are needed. (To be improved and customizable)
50
51   1. Change the permission of the video and thumbnails directories
52
53 {{{
54 $ chmod 777 plugins/sfVideoGalleryPlugin/web
55 $ chmod 777 plugins/sfVideoGalleryPlugin/web/thumbnails
56 }}}
57
58 == Usage (Frontend) ==
59
60  1. Put the use_helper in your template
61
62 {{{
63 <?php use_helper('sfVideoGallery') ?>
64 }}}
65
66  2. Use the sfVideoGallery Helper
67
68 {{{
69 <?php if ( video_has_gallery('entity',$entity->getId() ) {... ?>
70 }}}
71  
72 {{{
73 <?php echo video_thumbnail_tag('entity',$entity->getId(),$html_options=array()) ?>
74 }}}
75
76 {{{
77 <?php echo video_lightbox_slideshow('entity',$entity->getId(),$options=array()) ?>
78 }}}
79 Options for this helper:
80  * label=STRING (default is 'Add')
81  * icon=true (show image_multi icon needs [wiki:sfIconPlugin]
82  
83 == Usage (Backend) ==
84
85  1. Enable the module in your settings.yml
86
87 {{{
88 all:
89   .settings:
90     enabled_modules:      [default, sfVideoGallery, ...]
91 }}}
92
93  2. Clear the cache
94 {{{
95 $ symfony cc
96 }}}
97
98  3. Put the use_helper in your template
99 {{{
100 <?php use_helper('sfVideoGallery') ?>
101 }}}
102
103  4. Use the sfVideoGallery Helper
104
105 {{{
106 <?php if ( video_has_gallery('entity',$entity->getId() ) {... ?>
107 }}}
108  
109 {{{
110 <?php echo video_link_to_add('entity',$entity->getId(),$use_icon,$use_mbox) ?>
111 }}}
112 Options for this helper:
113  * label=STRING (default is 'Add Video')
114  * icon=true (show image_multi icon, requires [wiki:sfIconPlugin]
115  * modalbox=true (open the image Borwser in a Modalox window, requires [wiki:sfModalboxPlugin])
116
117 == Changelog ==
118 2008-06-27: 0.1.4 beta
119  * BUG FIX
120
121 2008-06-27: 0.1.3 beta
122  * Rank managing, added action manageGallery
123
124 2008-06-05: 0.1.2 beta
125  * Added html_options to video_thumbnail_tag helper
126
127 2008-06-03: 0.1.1 beta
128  * Bug fix (thanks to Jonathan Bryan <jonathan@ifranks.com>, Karsten Redmer <k.redmer@yahoo.de>, Szentesi Zsolt <szente@webkombinat.hu>, pinedasoft@gmail.com)
129
130 2008-05-07: 0.1.0 beta
131  * Initial release
132
133 == Todo ==
134
135  * CRUD for videoGallery and single Video (EDIT AND DELETE)
136  * Rank management (inside a gallery)
137  * Set default values for constants and add the possibility to change them (app.yml)
138  * Improve options for helpers (modalbox and lightbox)
139  * Remove the thumbnails requirements
140  * Customize the image format allowed
141
142 == Contacts ==
143
144 If you have any questions or feedback feel free to contact me at [mailto:piccioli@netseven.it].
145
146 Please include sfVideoGalleryPlugin in the mail subject, this will help me tracking the conversation.
147
148
149 == License ==
150
151 sfVideoGalleryPlugin is a symfony plugin created by Alessio Piccioli.
152 For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Note: See TracBrowser for help on using the browser.