English 中文(简体)
How to create breadcumb for custom component in Joomla?
原标题:
  • 时间:2009-11-25 15:38:37
  •  标签:
  • joomla

I have a custom component in which I want to have a breadcumb to help the user navigate the previous page visits. The basic feature in my component is to show our product releases. The workflow is:

  1. The user select the Products menu item. A new page is shown that displays the product names.
  2. The user select a specific product name. A new page is shown that displays the releases for this product.
  3. The user selects a specific product release. A new page is shown with information about this product release. The user can in this page view other products that depends on this release.

I have tried to use the builtin breadcumb function for this:
$app =& JFactory::getApplication();
$pathway =& $app->getPathway();
$pathway->addItem("$productName", "index.php?option=com_rcs_products&view=product&productName=$productName&Itemid=$Itemid");

This correctly creates the breadcumb. But it only displays three levels:
Home - RCS Products - FSPA2-1.2

When I navigate to a new release it displays:
Home - RCS Products - IPU2-2.0

I would like it to show:
Home - RCS Products - FSPA2-1.2 - IPU2-2.0

Is this possible?

最佳回答

Just add another item to the pathway:

$pathway->addItem("$productCategory", "index.php?blabla");
$pathway->addItem("$productName", "index.php?option=com_rcs_products&view=product&productName=$productName&Itemid=$Itemid");
问题回答

暂无回答




相关问题
cross platform issues in webpages

I am developing some basic html pages, i am setting colors of text usimg color code #e7eddf it seems fine in windows but seems different in mac. Can you explain me why its happening and also ...

How to create breadcumb for custom component in Joomla?

I have a custom component in which I want to have a breadcumb to help the user navigate the previous page visits. The basic feature in my component is to show our product releases. The workflow is: ...

Preloading images

i ve a navigation bar like the one below..for each it changes the background color on mouseover and mouseout and there is a lag to load those images which looks awful :( i wanna know how to preload ...

Joomla conditional menu item

I d like to create a menu item in Joomla that points to one article when the user is logged out, and a different article when the user is logged in. I tried creating two menu items, and make them ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

How can you test if you re on the homepage in Joomla?

I m working on a Joomla site, and I need the front page to look slightly different from the rest of the pages, but not enough to warrant the use of two themes (it s a pain to have to update two ...

How to get the current Joomla username?

I m trying to get the current Joomla username. I was able to get it by using $user =& JFactory::getUser(); echo $user->username; But now I ve installed Joomla on my local server and it doesn ...

热门标签