Hi all,
i have the next snippet to add a jquery youtube playlist.
/*
$modx->regClientStartupScript('path/to/file');
The snippet could take the filename as a parameter and inject the correct file.
*/
$modx->regClientStartupScript('http://www.tonyadams.nl/assets/jquery/jquery.youtubeplaylist.js');
This script will create a playlist like:
SUBJECT HERE
<div class="yt_holder">
<div id="ytvideo"></div>
<div id="videolijst">
Playlist:<p />
<ul class="demo1">
<li><a href="http://www.youtube.com/watch?v=XXXXXXX">Come on baby</a></li>
<li><a href="http://www.youtube.com/watch?v=XXXXXXX">Heartbeat</a></li>
</ul>
</div>
</div>
The publisher needs an input form, where he just can paste the subject of his playlist, title en link for every youtube movie he wants to add to his playlist.
I can create a seperate admin page and query the database for it, but it should be possble to this inside the modx manager and without a database query.
I THINK i need a template variable to do this, but have no clue how to implement this?
I think the solution for this, is the same as another problem for me: how to create a form for adding values for javascript variables for a publishers’ account?
Thanks in advance for any comment!