Joomla! Discussion Forums



It is currently Mon Nov 23, 2009 8:13 pm (All times are UTC )

 




Post new topic Reply to topic  [ 5 posts ] 
Author Message
Posted: Sun Nov 12, 2006 12:25 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Jun 11, 2006 10:29 am
Posts: 291
Location: Netherlands
Hi

Current value breadcrumbs: "Home >> jms >> Joomla Message System >> Inbox"
I want it to be: "Home >> Joomla Message System >>  Inbox".

I insert to the breadcrumbs: "$document->setTitle( Jtext::_( 'JOOMLA MESSAGE SYSTEM' ) . ' - ' . $functext );";

Anybody an idea?

Grtz

_________________
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!


Top
  E-mail  
 
Posted: Tue Nov 14, 2006 5:24 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
What code are u using the add the 'jms' to the pathway ?

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Tue Nov 14, 2006 6:27 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Jun 11, 2006 10:29 am
Posts: 291
Location: Netherlands
[quote=∓quot;Myself"\]"$document->setTitle( Jtext::_( 'JOOMLA MESSAGE SYSTEM' ) . ' - ' . $functext );"[/quote]

Jinx wrote:
What code are u using the add the 'jms' to the pathway ?


Hmm weird i have managed to give the title code here  ??? and i have been able to remove my own pathway codes. :-\

Anyway I have added the codes again now:
Code:
$pathway =& $mainframe->getPathWay();
$pathway->addItem( Jtext::_( 'JOOMLA MESSAGE SYSTEM' ), $urlbase .  'index.php?option=com_jms&Itemid=51' );
$pathway->addItem( $functext);


Which results to this:
Quote:
Home >>  jms >>  Joomla Message System >>  Inbox >>  Joomla Message System >>  Inbox

_________________
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!


Top
  E-mail  
 
Posted: Tue Nov 14, 2006 10:28 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 11:03 pm
Posts: 1356
Location: New Orleans, Louisiana
Hi nicholai,

What you are getting is expected behavior.  The application creates two entries in the pathway automatically for you.  Home, and the called component.

If you want to achieve what it is you are doing you need to use a different API call to set the name of the second item in the pathway... the component entry in the pathway:

Code:
   // Handle BreadCrumbs
   $breadcrumbs = & $mainframe->getPathWay();
   $breadcrumbs->setItemName(1, JText::_('JOOMLA MESSAGE SYSTEM'));


where 1 is the component offset in the pathway array .... 0 is the home offset

Louis

_________________
Development Working Group Coordinator
http://webimagery.net - Consulting
http://jxtended.com - Solutions for Joomla! 1.5
A hacker does for love what others would not do for money.


Top
  E-mail  
 
Posted: Wed Nov 15, 2006 1:52 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Jun 11, 2006 10:29 am
Posts: 291
Location: Netherlands
louis.landry wrote:
Hi nicholai,

What you are getting is expected behavior.  The application creates two entries in the pathway automatically for you.  Home, and the called component.

If you want to achieve what it is you are doing you need to use a different API call to set the name of the second item in the pathway... the component entry in the pathway:

Code:
   // Handle BreadCrumbs
   $breadcrumbs = & $mainframe->getPathWay();
   $breadcrumbs->setItemName(1, JText::_('JOOMLA MESSAGE SYSTEM'));


where 1 is the component offset in the pathway array .... 0 is the home offset

Louis


Situation now:

Code
Code:
$breadcrumbs =& $mainframe->getPathWay();
$breadcrumbs->setItemName( 1, JText::_('JOOMLA MESSAGE SYSTEM'));
$breadcrumbs->setItemName( 2, $functext);


Result:
Quote:
Home >> Joomla Message System >> Joomla Message System >> Inbox

I have tried different $ids, but that doesnt solve it

_________________
Founder and Lead developer of JAM (http://joomladev.org)
JAM is the first J!1.5 only component using AJAX!


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Quick reply

 



Who is online

Users browsing this forum: just_chris, KSiimson, nailson_imgn, ooffick, sx_codank and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group