Embed codes are very common nowadays. Video sites such as YouTube provide them so you can share videos. Many shopping carts including PayPal provide them so you can sell products easily. Another common use is maps - go to http://maps.google.com and once you've foudnd a location, Google will allow you to click on "link" and get an embed code for the map:

tutuploadsmedia_1285190175857.png

However, here's the problem ... if you try to put these embed codes into an article, Joomla's normal editor will make a mess of them. You simply won't be able to get your video, shopping cart, map or other embed code to work.

Here's here to get around the limitation.

Using Default Joomla

tutuploadsmedia_1285191073025.png

Go to your Administrator screen then Site >> Global Configuration.

tutuploadsmedia_1285191093196.png

Set "Default WYSIWYG Editor" to "Editor - No Editor" and click Save.

tutuploadsmedia_1285190361247.png

Now when you go back to an article you can safely paste your code into the article and click save.

However, you will now never be able to see the article through the normal editor. You'll need to keep editing the article with the editor turned off. Fortunately, there is a solution:

A Move Advanced Technique

tutuploadsmedia_1285190582150.png

First of all, make sure you have your editor turned off as in the previous section. Then go to Extensions >> Module Manager and click New.

tutuploadsmedia_1285190616370.png

Choose "Custom HTML":

tutuploadsmedia_1285190643934.png

Inside the module, you'll need to do three things:
1) Name the module
2) Set "Show Title" to No.
3) Put your cursor in the "Position" box and hit the back button. You'll be able to create your own position. Give it a unique name.

tutuploadsmedia_1285190686074.png

Now you can enter your embed code just as you did in the earlier section. Click save to complete the process.

tutuploadsmedia_1285191674318.png

Place Your Embed Code in Articles

tutuploadsmedia_1285190802695.png

Now, go back to Site >> Global Configuration and you can choose "Editor - TinyMCE" to turn your editor back on. Now when you go to any article you keep your editor on and use the syntax above: (or whatever you entered in the "Position" field when creating your module.

You can work normally with no fear of destroying your embed code. You can also reuse this embed code as many times as you wish throughout your site, but still only need to update it once (inside the module).

The End Result

tutuploadsmedia_1285191196967.png

Whichever method you use, hopefully when you save your article you'll be able to see the embed code live and working on your site.

Login to post comments

advertise with us

Boost your traffic and expand your pool of potential customers

8000 active members

Ready to join Now?

CMS Portal - The free marketplace for submitting Joomla, Drupal, Wordpress, Magento, phpBB, Prestashop, vBulletin, Opencart Templates and more.

FOLLOW US

Email Newsletters

Make sure you don't miss interesting happenings by joining our newsletter program.
konya escort eskisehir escort canakkale escort samsun escort balikesir escort aydin escort hatay escort kahramanmaras escort giresun escort tokat escort
Joomla Templates Free Joomla Templates Virtuemart Templates K2 Templates JoomShopping Templates HikaShop Templates SobiPro Templates OpenCart Themes
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes
bettilt
tempobet