Saturday, March 27, 2010

Why Joomla's component not having the same MVC structure like joomla 1.5?

Hello Friends,

    I am working in joomla since 1 year and i have also worked on many components but when i got the new project with new component , every time i face the issue with standard coding format. Like joomla 1.5 having the MVC structure but the popular component which is paid one, but still not using the MVC structure.

There lots of component which very powerful and its using in many sites but still not having common MVC structure. so due to that joomla developer needs learn coding structure every time and facing the issue while learning the new component.

Advantage of the common structure : All have to learn the same flow and also having the fastest grow related to publish component. So please my suggestion is to when we follow the any structure like joomla then we should also have the strict standard format to create the new component, which beneficial to grow up whole joomla community.

Here is the list of component which is not follow joomla 1.5 standard:
1. Jomres (Very popular in hotel booking site)
2. Virtumart (Very popular in shopping cart implementation)

there are the other lots of component which is build with very poor standard and its not maintainable at the time of customization.

So if you are the joomla developer and the facing the issue with above points the please post your suggestion to improve the joomla's component standard.


Regards,
Sandip

Wednesday, March 17, 2010

2 Mins to place the Google map in Joomla

Hello All,

   I am working in joomla since last one year and sometimes, i really felt big the issue with google map because I have not found such good plugin OR Module which is display the map as many way as possible. So recently in joomla's plugin directory i have found such useful plugin which is working great with article and contact us page.



Mostly, we need the Google Map in (Contact us and Article pages) and this plugin is display the map in such a nice way with one line code.

Google Map display in article page:

Below is the syntax for the same

{mosmap lat='32.7659074'|lon='-117.2254277'|zoom='18'|rotation='1'|mapType='Hybrid'}

By changing the map type you can get multiple types of map views.

Google Map display in contact us page: This is little bit tricky but its work nice. you should need to change in main index.php file. Below is the code you need to put in index.php file



Add these lines at line 84 after $mainframe->render();:
JPluginHelper::importPlugin('content');
$tmp_row->text = JResponse::getBody();
$tmp_params = new JParameter(null);
$mainframe->triggerEvent('onMap', array( &$tmp_row, &$tmp_params ), true );
JResponse::setBody($tmp_row->text);

* So above code will work in contact us page. for more details please follow below link.
How to put Google Map Inside the Contact us page



* For downloading the plugin please follow below link.


Plugin download link

I have also done many R & D with this Plug-in. So please let me know if you have any issue with this plug-in. I will try my best to solve out it.

Regards,
Sandip