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?
component-title next to toolbar like 'Category Manager'
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
- carsten888
- Joomla! Apprentice
- Posts: 27
- Joined: Sat Feb 11, 2006 8:32 am
- Location: Tilburg, Holland
- Contact:
component-title next to toolbar like 'Category Manager'
Last edited by carsten888 on Sat Mar 01, 2008 2:18 pm, edited 1 time in total.
Re: component-title next to toolbar like 'Category Manager'
Put this in your view.html.php file
Code: Select all
JToolBarHelper::title( JText::_( 'My Component Title' ), 'generic.png' );
- carsten888
- 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'
thanks! brilliant.
would you happen to know it's Joomla 1.0.x equivalent ?
would you happen to know it's Joomla 1.0.x equivalent ?
Re: component-title next to toolbar like 'Category Manager'
With 1.0.x it was just placed in the .html.php output file like:
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.
Code: Select all
<table class="adminheading">
<tr>
<th>
Weblink:
<small>
<?php echo $row->id ? 'Edit' : 'New';?>
</small>
</th>
</tr>
</table>
- carsten888
- 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'
thanks a lot. I was looking way deeper in the core-code then that