Youtube video using AllVideos plugin
In this example we will alow users to submit a YouTube video ID. We use the AllVideo plugin from JoomlaWorks to render the video in the Joomla article.
The YouTube video id can be found in the URL:
http://www.youtube.com/watch?v=k-OOfW6wWyQ
The Joomla article plugin code for AllVideo is:
In F2C we want to create this code in our F2C Template and add a field to our form for collecting the YouTube video ID.
1) Create a field in your submission form with (unique) field name called: youtube_id
2) In your F2C (main) article template add this code:
3) Now if there is no code submitted, the youtube_id field will be empty BUT the plugin code will show! To prevent this add the following code:
4) Create an article through the F2C Article Manager and see the result ... make sure to publish the AllVideo plugin!