JoomlaSriLanka | Web Designer in Sri Lanka

lanka web design development joomla blog banner 

In our quest for knowledge and learning new technologies, we do a lot of researching , reading and community activities . Sometimes we find many topic that we think worth sharing for the benefit of our clientsand other web professionals all over the world. Enjoy and participate by commenting and sharing. 

How to stop Google indexing your site when it is under construction or maintenance

When you are creating a new website with Joomla or with any other method on a live server, Google might index the half-done pages and give you crappy search results for some time.  Best thing is to block google from visiting the site using the good old robots.txt 

change the content of the robots.txt in the root folder to 

User-agent: *
Disallow: /


thats it , google will never look at your site untill you remove these lines. So dont forget to replace these codes with original Joomla robots.txt file contents later.

User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /images/
Disallow: /includes/
Disallow: /installation/
Disallow: /language/
Disallow: /libraries/
Disallow: /media/
Disallow: /modules/
Disallow: /plugins/
Disallow: /templates/
Disallow: /tmp/
Disallow: /xmlrpc/

Further reading http://antezeta.com/news/avoid-search-engine-indexing

Joomla Tip : Creating a new file on a joomla installation

Whenever creating a new file for the Joomla! installation you must avoid using certain text editors such as , WordPad, Word, for example as they unfortunately have a tendency to add unwanted and unnecessary code that may cause problems later on. Always remember to save files in plain text format.

How to add CSS and Javascript to Your Joomla 1.5 Extension

When creating a quality Joomla extension you will place your styles and javascript codes on seperate files. 

Then here is the way to add those files in to the joomla extension the proper way. 

$document = JFactory::getDocument();
$document->addStyleSheet(JURI::root().'mod_name/css/stylesheet.css');
$document->addScript(JURI::root(). 'mod_name/js/script.js');

How to create a Joomla 1.5 Custom 404 Error Page

Joomla! CMS uses the templates/system/error.php file to handle several HTTP Status errors, including "403 Forbidden", "404 Not Found", and "500 Internal Server" Errors. You may style the error results  by directly changing the templates/system/error.php. 

But it is not advisable to hack core system files as those changes can be lost in an event of a Joomla update process!.

So best way is to use the template overriding and add a error.php file to your default template and customize it. 

 

 

Latest Work UG - New Zealand

uglydumpling.co.nz web design by sri lankan design company for new zealand

 

 

Paradise Vacations : Web Design | Joomla

 

 

paradisevacations1

 

Fly Sri Lanka : Web Design : Joomla

 

 

flysrilanka