implementing breadcrumbs (migrating component to Joomla 2.5) - Joomla! Forum - community, help and support


hi!

i'm migrating component joomla 1.5 joomla 2.5. i'm done. have minor issues left.

one of them implementing breadcrumbs had in joomla 1.5.

i identified pieces of code suppose set breadcrumbs, don't work in joomla 2.5:

site/views/atomicongallery/view.html.php:

code: select all

                //add gallery breadcrumbs
                atomicongallery::addpathway($this->folder, $this->folder_param);


admin/helpers/atomicongallery.php:

code: select all

  function addpathway($folder = '', $folder_param = '')
  {
        global $mainframe;
        $mainframe = jfactory::getapplication();

        if (!empty($pathway))
        {
                $folders = explode("/", $this->folder);
                $folder  = '';
                foreach($folders $foldername) {
                        if ($folder!='') {
                                $folder.='/';
                        }
                        $folder .= $foldername;

                        if ($folder_param!='')
                        {
                                if (strpos($folder_param, $folder)!==false)
                                {
                                        continue;
                                }
                        }

                        if ($foldername!='') {
                                $pathway->additem($foldername, jroute::_('index.php?option=com_atomicongallery&folder=' . $folder));
                        }
                }
        }
  }


i found article http://docs.joomla.org/how_to_add_breadcrumbs, i'm not sure, how apply in case exactly.

any welcomed.

best regards,

mario.

you can use module show breadcrumbs on position. go module manager , create breadcrumbs type module.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support