|
|
|
Lab Eleven Blogs
A short description about your blog
Tags >> Joomla
Posted by: twmeier
on Aug 7, 2009
Adding a singe image to a product is easy. Adding additional images can be confusing.
To add additional images to a product, find your product in the Product list in the backend of your website.
 In the "Media" column, you will see a small icon. Click this icon. On the next page, you will be able to add more images to the product. You can also add other types of media such as a PDF. That is all there is to it.
Posted by: gbluma
on Jul 9, 2009
Joomla seems to have everything figured out — Breadcrumb support is no exception.
Recently we were writing some custom component for a client and needed to handle the breadcrumbs in a special way that Joomla couldn't manage automatically.
As a simplified example, imagine we redirect a user to a component that isn't attached to a menu. We would expect the breadcrumbs to simply output "Home" and provide a link back to the index of the site.
Posted by: twmeier
on Jun 30, 2009
Sometimes it may be hard to know how to best use Joomla's database class. Here are just a few of the most used database functions.
In Joomla 1.5, include the following line of code inside your php:
<?php $database =& JFactory::getDBO(); ?>
Use the $loadObject function when you want to retrieve one row from the database. For example:
$database->setQuery("SELECT * FROM jos_comprofiler WHERE id=125"); $userDetails = $database->loadObject();
You can now access the values as follows:
$userDetails->firstname $userDetails->lastname .....
If you want to retrieve more than one row from the database, use the loabObjectList() function. For example:
$database->setQuery("SELECT * FROM jos_comprofiler WHERE id<125"); $userDetails = $database->loadObjectList();
You will now have an array of objects. You can access the values as follows:
$userDetails[0]->firstname $userDetails[0]->lastname $userDetails[1]->firstname $userDetails[1]->lastname .....
If you want to retrieve a single value from the database, use the loadResult() function. For example:
$database->setQuery("SELECT COUNT(*) FROM jos_comprofiler"); $count= $database->loadResult();
You now have a regular php variable. In this case $count.
There are other Joomla database functions, but these three are the most common.
Posted by: twmeier
on May 19, 2009
Embedding videos inside your Joomla content is easy. There are several Joomla plugins that make it a snap.
The plugin I would suggest is called the AllVideos (by JoomlaWorks), and can be downloaded for free at www.joomla.org.
Once you have installed the plugin, you will need to enable it by going to the "Plugin Manager" in the backend of your Joomla site (/administrator).
Below are some of the plugins features: 1. Dozens of video providers supported, including localized versions of YouTube and Google Video (e.g. es.youtube.com). 2. Stream your own media content, using the most popular video or audio formats for the web (flv, swf, mov, mp4, wmv, wma, mp3, 3gp, divx). You can even use high-definition videos! 3. Easily embed your media content either directly from your server or a remote server! 4. Simple controls inside the plugin's parameters page provide layout consistency on all the videos shown in your Joomla! website. Set your preferences in seconds, publish the plugin and you're ready to start streaming content! 5. Easy, descriptive syntax for media embedding - {format/provider}filename{/format/provider}. You can also use syntax like {format/provider}filename|width|height{/format/provider} (e.g. {youtube}he73js822|600|450{/youtube}) to display videos at different dimensions! 6. Skinnable! AllVideos uses CSS templates to wrap the players, we provide 2 to get you started.
Basically to use this plugin, you must first install and enable it in the backend of you Joomla website (/administrator), then you would simply insert the curly bracket text into your content. This does not need to be done in HTML, and can simply be text.
To embed an FLV file directly into your content, you would simple upload the video to the folder that the plugin has designated (by default it is images/stories/videos), and use the following text: {flv}btodd09|500|400|true{/flv}
From this example, you will notice that you do not need to include the .flv extension. You will also notice that the width and height are determined by the 500 and 400 respectively. By adding "|true", you will can also automatically start your video. You can get more information on how to use the plugin at their website: http://www.joomlaworks.gr/content/view/35/41/
Posted by: twmeier
on May 11, 2009
Modifying the page title, keywords and description for a page created by a component in Joomla is very simple.
Inside your component, add the following: <?php global $mainframe; $mainframe->SetPageTitle("Some Page Title"); $mainframe->appendMetaTag( "description", "Some Description."); $mainframe->appendMetaTag( "keywords", "keyword1, keyword2"); ?>
It is that simple.
Posted by: jstartup
on Mar 31, 2009
In the module's xml file add a section for parameters.
<params></params>
Input
<param name="sample_input" type="input" default="default value" label="Sample Input" description="Mouseover popup description." />
Posted by: twmeier
on Mar 30, 2009
Changing the Page Title and the Meta Tags (keywords and description) in a Joomla Component is simple (this does not apply to articles or the home page of your site).
The first step is to include the following line of code inside php tags: global $mainframe;
Then simply use the following functions to change the Page Title, Meta Keywords and the Meta Description:
$mainframe->SetPageTitle("Some Page Title"); $mainframe->appendMetaTag( "description", "Some Description."); $mainframe->appendMetaTag( "keywords", "keyword, keyword2");
Since this code is php, it should all be inside php tags like it is below:
global $mainframe;
$mainframe->SetPageTitle("Some Page Title"); $mainframe->appendMetaTag( "description", "Some Description."); $mainframe->appendMetaTag( "keywords", "keyword, keyword2"); ?>
That is all there is too it. You will notice that your Meta Description and Keywords will be appended to your global Meta Description and Keywords, which can be found in the "Global Configurations" in the backend of Joomla.
Posted by: jstartup
on Mar 4, 2009
A common piece to add to a website is the copyright information, typically located at the bottom of the page. This is one of the simplest of Joomla modules but one that's very useful and easy to install. The year is set up using the php date function so it won't require updating, and the business/company name is editable from the Module Manager parameters. The text is displayed in a div with the class name of copyright_info for easy CSS style control.
Posted by: twmeier
on Feb 27, 2009
There is a simple and effective way to help speed up your Joomla site. It is called "caching". When you use the caching feature, Joomla creates a static file (or cache), of your web pages. This means that your website can use this cached file instead of making redundant database calls each time someone goes to a page. This in turn saves time and speeds up your site.
Posted by: gbluma
on Feb 18, 2009
This article will show you how to build a quick plugin to replace some text in an article before it get's displayed to the user.
Intro
Lately I've been writing a number of content plugins for Joomla. They're pretty simple, but basically it allows you to transform the content at a number of points in Joomla's process of editing, saving, and displaying of that content. In theory you could use it to do anything but it's common to replace text and/or add special content into the articles.
I used to frown on these types of plugins because it's better to just get the data right in the first place. But sometimes controlling the input just isn't possible or perhaps you need to keep the article in a certain format but display it in another format.
<< Start < Prev 1 2 3 Next > End >>
|