Page 1 of 1
component-title next to toolbar like 'Category Manager'
Posted: Sat Mar 01, 2008 9:30 am
by carsten888
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?
Re: component-title next to toolbar like 'Category Manager'
Posted: Sat Mar 01, 2008 9:40 am
by Bodom78
Put this in your view.html.php file
Code: Select all
JToolBarHelper::title( JText::_( 'My Component Title' ), 'generic.png' );
Re: component-title next to toolbar like 'Category Manager'
Posted: Sat Mar 01, 2008 9:58 am
by carsten888
thanks! brilliant.
would you happen to know it's Joomla 1.0.x equivalent ?
Re: component-title next to toolbar like 'Category Manager'
Posted: Sat Mar 01, 2008 1:34 pm
by Bodom78
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.
Re: component-title next to toolbar like 'Category Manager'
Posted: Sat Mar 01, 2008 2:17 pm
by carsten888
thanks a lot. I was looking way deeper in the core-code then that