Keyword

Embedding YouTube

More
5 months 3 weeks ago #170658 by steve
steve created the topic: Embedding YouTube
Hello,

I have tried many attempts at inserting a Youtube video that appears in the blog content of K2, I cannot figure it out, I even tried AllVideos plugin as well and I'm not sure why it's not working.

Can someone tell me the steps that should get it to work in case I'm doing it wrong?

kind regards,

Steve

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 months 3 weeks ago #170683 by Fotis
Fotis replied the topic: Embedding YouTube
Did you read the AllVideos documentation page first? www.joomlaworks.net/support/docs/allvideos


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #170696 by steve
steve replied the topic: Embedding YouTube
Yes I have, the video URL can be pasted into K2 > Media tab > 'Select video provider' = youtube 'and enter video ID' = YT URL

That works and when I post it its visible under the Media Section, however, I wanted that to be in the content section where is closer to the text of the blog if you get me?

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
5 months 3 weeks ago #170697 by Mohamed Abdelaziz
Mohamed Abdelaziz replied the topic: Embedding YouTube
Hello Steve,
If the problem is that the video does not appear in the item view, you need to configure the media option in the category edit form, have a look at the screenshot below, if the media set to Hide, then set it to Show and configure the other options to adjust the layout.


To place the video in a specific position, you need to override the item.php template file and move this code to where you want the video to appear
<?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?>
	<!-- Item video -->
	<a name="itemVideoAnchor" id="itemVideoAnchor"></a>
	<div class="itemVideoBlock">
		<h3><?php echo JText::_('K2_MEDIA'); ?></h3>

		<?php if($this->item->videoType=='embedded'): ?>
		<div class="itemVideoEmbedded">
			<?php echo $this->item->video; ?>
		</div>
		<?php else: ?>
		<span class="itemVideo"><?php echo $this->item->video; ?></span>
		<?php endif; ?>

		<?php if($this->item->params->get('itemVideoCaption') && !empty($this->item->video_caption)): ?>
		<span class="itemVideoCaption"><?php echo $this->item->video_caption; ?></span>
		<?php endif; ?>

		<?php if($this->item->params->get('itemVideoCredits') && !empty($this->item->video_credits)): ?>
		<span class="itemVideoCredits"><?php echo $this->item->video_credits; ?></span>
		<?php endif; ?>

		<div class="clr"></div>
	</div>
	<?php endif; ?>

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Attachments:

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 months 1 week ago #170739 by Fotis
Fotis replied the topic: Embedding YouTube
Or you can always use {youtube}...{/youtube} tags within your content, per AllVideos documentation.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

Moderators: william white

Powered by Kunena Forum