How to embed a YouTube video into an article in Joomla

How to Embed YouTube videos in Joomla

Update: we highly recommend the OSEmbed extension for embedding code in Joomla.

OSEmbed is the easiest way to embed anything in Joomla. You can add YouTube videos with just a URL. Plus you can also add Facebook posts, Twitter tweets, Flickr images, Vimeo videos and over 60 other types of media.

OSEmbed really is the best way to embed YouTube videos and everything else.

Read more: How to embed a YouTube video into an article in Joomla

How to use the GeSHi plugin in Joomla

Joomla! comes with a plugin/mambot called GeSHi that comes in quite handy if you have a site in which you share code snippets with your readers. I recently tried to use GeSHi on a Joomla! 1.5 site, and I found that it works differently in Joomla! 1.5 than it does in Joomla! 1.0. Read on to see how to use it in both.


What is GeSHi?

GeSHi stands for "Generic Syntax Highlighter", and it is used to highlight code snippets in different web languages like PHP, HTML, and CSS. It also converts tags in those languages so that they will not render like regular tags.

For example, if you want to share some HTML code, you have to use something like GeSHi, or the browser will treat your HTML code like regular HTML code.

The following code is done without GeSHi:

<p><strong>Without GeSHi</strong></p>

The following code is done with GeSHi:

<div class="code">
<pre xml:"php">
<p><strong>With GeSHi</strong></p>
</pre>
</div>

Not that in the code with GeSHi, you can see the HTML tags, and in the code without GeSHi, you cannot see the HTML tags. The words "Without GeSHi" are rendered like regular HTML

How to use GeSHi in Joomla! 1.0

To use GeSHi in Joomla! 1.0, you use the following HTML code:

<div class="code">
<pre xml:"php">
<pre lang="html">
<!-- your HTML code here -->
&lt;/pre>
</pre>
</div>

You can change 'lang="html"' to other languages like 'lang="php"' so that GeSHi highlights it according to the language you are using.

How to use GeSHi in Joomla! 1.5

GeSHi has a very slight difference in Joomla! 1.5. Here is an example:

<div class="code">
<pre xml:"php">
<pre xml:html>
<!-- your HTML code here -->
&lt;/pre>
</pre>
</div> 

Note that instead of 'lang="html"', you use 'xml:html'. That is the only difference. I'm not sure why they did it that way, but they did so if yo plan on using GeSHi for Joomla! 1.5, you need to be aware of this.

Questions/Comments

As always, questions and comments are welcome.

How to view just your component in Joomla! 1.5

Here is a neat little trick I picked up last Friday at the Joomla! 1.5 bootcamp in Austin led by Johan Janssens.

In Joomla! 1.5, if you simply want to display your component without any modules and without your template styles, all you have to do is add "?tmpl=component" or "&tmpl=component" to the end of the URL, depending on whether or not there are already other parameters on the end of the URL.

For example, if you just want to view the component on the home page of the new community.joomla.org site, you simply add "?tmpl=component" to the URL like this: https://community.joomla.org/?tmpl=component.

This trick is really useful for template designers because you can isolate the HTML used in a specific component, so you can determine how best to set up your CSS for styling that component.

Enjoy!

Joomlashack Releases its latest native Joomla 1.5 Template

Introducing the latest native Joomla 1.5 template from Joomlashack - JS Relevant!

Joomla templates are fast becoming overloaded with widgets and code bloat. Relevant is a refreshingly clean template that let's your all important content speak for your site, and not get buried under a distracting template. Built to be SEO optimized and take subtle advantage of Joomla 1.5's template override features, Relevant will bring a professional finish to your site.

Read more: Joomlashack Releases its latest native Joomla 1.5 Template

Joomlashack Releases its latest native Joomla 1.5 Template

Introducing the latest native Joomla 1.5 template from Joomlashack - JS Relevant!

Joomla templates are fast becoming overloaded with widgets and code bloat. Relevant is a refreshingly clean template that let's your all important content speak for your site, and not get buried under a distracting template. Built to be SEO optimized and take subtle advantage of Joomla 1.5's template override features, Relevant will bring a professional finish to your site.

Read more: Joomlashack Releases its latest native Joomla 1.5 Template

Early Survey Results - Most People use Joomla 1.5

Joomla Events are growing and Joomla 1.5 is Easier to Use

Last year over 3000 people filled out our first ever Annual Joomla User Survey. Over the last few weeks we have been running our 2nd Annual Joomla Survey and already over 1000 people have told us about how they use Joomla.

There is still time to fill out the survey and enter to win over $1,000 worth of prizes!

We released the results of our first survey last year and found some interesting things. We have been looking at some of the early data, and its been very interesting to be able to analyses trends now we have data over time.

Read more: Early Survey Results - Most People use Joomla 1.5

How to Learn from a Joomla! lead developer

OK, I admit it. This isn't exactly a "How-To" article, but I wanted to draw everyone's attention to an upcoming event in Austin, TX that I will be attending. It is called "Joomla! 1.5 Bootcamp," and it will be held on Friday, July 18 from 8am to 4pm CST (GMT -6) at the Doubletree Hotel Austin. I want to strongly encourage anyone who can make it to come to this event. The keynote speaker/teacher for this event will be none other than Johan Janssens, one of the lead developers of Joomla! The event is being put on by Chris Justice (a.k.a. MegaJustice) from Sparksight.com.

Click "Read More" to see more information about the Bootcamp.

Read more: How to Learn from a Joomla! lead developer

Chicago Joomla Expo Recap: 300 passionate users in one room

A few weeks ago Team Joomlashack was together for a rare in-person gathering. (Our team is scattered across four states and three time zones, all in the U.S.) JoomlaEXPO in Chicago was a terrific day for any Joomlahead, but especially those new to our wild software scene.

Read more: Chicago Joomla Expo Recap: 300 passionate users in one room

Joomlashack 2008 Joomla User Survey

Joomla SurveyTake the 2008 Joomla User Survey and enter to win over $1,000 in prizes!

Got a few minutes to take our annual Joomla user survey? In return, we'll give you 30% off all of our commercial products in the month of August. And if you're lucky, you could win a $100 gift certificate to Amazon.com or a Joomlashack Developer Club membership for life!

Read more: Joomlashack 2008 Joomla User Survey

How to Display Your Page Title in Your Template - Joomla! 1.5

In October 2006, I wrote a how-to for displaying your page title within your Joomla! 1.0 template. Since the release of Joomla! 1.5, I have gotten many requests for an article explaining how to do this in Joomla! 1.5. Here is how you do it...

Read more: How to Display Your Page Title in Your Template - Joomla! 1.5