component-title next to toolbar like 'Category Manager'

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
carsten888
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

component-title next to toolbar like 'Category Manager'

Post by carsten888 » Sat Mar 01, 2008 9:30 am

How do I make my component so I get the component's title on the admin-page (under Joomla-toolbar, left of components-toolbar) like in 'Category Manager' the big blue header (with icon) ?

can't find anything about this in tut's.

anyone?
Last edited by carsten888 on Sat Mar 01, 2008 2:18 pm, edited 1 time in total.

Bodom78
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri Nov 04, 2005 9:23 am

Re: component-title next to toolbar like 'Category Manager'

Post by Bodom78 » Sat Mar 01, 2008 9:40 am

Put this in your view.html.php file

Code: Select all

JToolBarHelper::title( JText::_( 'My Component Title' ), 'generic.png' );

User avatar
carsten888
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

Re: component-title next to toolbar like 'Category Manager'

Post by carsten888 » Sat Mar 01, 2008 9:58 am

thanks! brilliant.

would you happen to know it's Joomla 1.0.x equivalent ?

Bodom78
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri Nov 04, 2005 9:23 am

Re: component-title next to toolbar like 'Category Manager'

Post by Bodom78 » Sat Mar 01, 2008 1:34 pm

With 1.0.x it was just placed in the .html.php output file like:

Code: Select all

<table class="adminheading">
		<tr>
			<th>
			Weblink:
			<small>
			<?php echo $row->id ? 'Edit' : 'New';?>
			</small>
			</th>
		</tr>
		</table>
I find that browsing the source files of the "Weblinks" or "Banners" components is a good place to start since they are easy enough to follow and provide a good starting ground.

User avatar
carsten888
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Feb 11, 2006 8:32 am
Location: Tilburg, Holland
Contact:

Re: component-title next to toolbar like 'Category Manager'

Post by carsten888 » Sat Mar 01, 2008 2:17 pm

thanks a lot. I was looking way deeper in the core-code then that :D


Post Reply