Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-11-20 13:25:44
- alosa
- New Member
- Registered: 2008-03-14
- Posts: 7
Easily add YouTube video to articles?
I’m aware of all those YouTube plugins (http://textpattern.org/plugins/?c=media) but is there way to really easily post YouTube videos to articles? My client is very non-tech guy and he wants regularly post(embed) multiple YouTube videos to his blog posts. I really can’t let him touch to any source code…. I’ve been finding solution for while but have not found any yet.
Thanks.
Offline
Re: Easily add YouTube video to articles?
Hi alosa
You could use a custom field or more and a plugin (for this I am using the_video)
<txp:if_custom_field name="youtube1"><txp:the_video y='<txp:custom_field name="youtube1" />' /></txp:if_custom_field>
repeat with other custom fields
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2009-11-20 16:25:35
- alosa
- New Member
- Registered: 2008-03-14
- Posts: 7
Re: Easily add YouTube video to articles?
Wow, great! Worked really well. Thanks a lot.
Offline
Re: Easily add YouTube video to articles?
colak wrote:
repeat with other custom fields
With rah_repeat comma seperated lists are possible too. If custom field named youtube contains list of IDs (id1,id2,id3).
<txp:rah_repeat value='<txp:custom_field name="youtube" />'>
<txp:the_video y='<txp:rah_repeat_value />' />
</txp:rah_repeat>
Offline
Pages: 1