How-To Categories
Recent How-To's
News Feed E-mail
Login
| How to add a widget to a module |
|
|
|
| Written by Cory | |
| Thursday, 15 March 2007 | |
|
Wikipedia defines a widget like this:
For example, the "Help Azaria" module in the left column of this site uses a widget from ChipIn.com (to test it, make a donation to Azaria's Dolphin Therapy fund to see the progress bar go up - wink wink). Many "web 2.0" sites offer widgets for blogs and other sites to display their content or tools for performing a specific task (like raising money via the ChipIn widget). It is a great way to add content or functionality to your site with very little effort. The process for embedding a widget to your site is usually just copying and pasting a snippet of code into the appropriate location. The problem is, Joomla!'s built-in WYSIWYG editors strip out parts of the widget's code causing it to work improperly. With this article, I will explain how to work around that problem and get the widget embedded into a user module without stripping out code. Step 1: Disable your WYSIWYG editor.There are two ways to disable your WYSIWYG editor: the global configuration and the user manager. Global ConfigurationTo disable the WYSIWYG editor in the global configuration, follow these steps:
The problem with disabling the WYSIWYG editor in the global configuration is that it affects all users. You may want to keep the editor enabled for other users and disable it for yourself. If that is the case, you should disable the WYSIWYG editor in the user manager. User ManagerTo disable the WYSIWYG editor in the user manager, follow these steps:
Step 2: Create the module.To create the module, follow these steps:
NOTE: You can add more content to the content box, but you will have to use HTML because your WYSIWYG editor is disabled. You are now widgetized.That's all there is to it. You now have a widget. I should caution you, though, that too many widgets make a page look cluttered and unprofessional. So, choose wisely. Only use the widgets you actually need to use. Other optionsThere are mambots/plugins and modules available that enable you to paste code into your WYSIWYG editor without it stripping out parts of the code. One example of such a module is the Jumi module and plign. If you can think of any more, please feel free to list it in the comments. QuestionsIf you have any questions or comments, as always feel free to add them to the comments below.
Set as favorite
Bookmark
Email This
Hits: 16158 Trackback(0)
Comments (4)
![]()
Nez: ... http://www.gooeytechnology.com
I used to do that, but lately I've been using Fiji Web Design's Google Adsense Module. The name is misleading as it's actually a module that lets you add any html or javascript code. It's simply brilliant! http://fijiwebdesign.com//content/view/74/54/
Cheers, Nez www.gooeytechnology.com 1 report abuse
vote down
vote up
March 29, 2007
Votes: +1
Rachel: ... http://www.ventureinvestornews.com
Thanks for taking the time to provide this tip, well written, easy to follow, thank you!
![]() 3 report abuse
vote down
vote up
October 19, 2007
Votes: +0 Write comment
|
| < Prev | Next > |
|---|









