Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2009-11-20 13:40:18

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,250
Website GitHub Mastodon Twitter

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

#4 2009-11-20 16:54:08

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB