Welcome, Guest
Username: Password: Remember me

TOPIC: change icon on grid

change icon on grid 14 May 2012 09:31 #2342

  • albert
  • albert's Avatar
  • Offline
  • Senior Member
  • Posts: 70
  • Thank you received: 2
  • Karma: 2
Hi,
I have

<?php echo JDom::_('html.grid.task', array(
'num' => $i,
'task' => "delete",
'label' => "COMPONENT_JTOOLBAR_DELETE",
'view' => "icon"
));
?>

And it works fine, but i would like to change the icon, i know it has to be easy, but i do not know how.
someone can give me a tip?

thanks
The administrator has disabled public write access.

Re: change icon on grid 14 May 2012 10:43 #2343

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
components/component_name/css/toolbar.css
In the component folder, you have a css folder. Inside, there is a toolbar.css with all the code you need. If you're only looking for the images, go to
components/component_name/images
The administrator has disabled public write access.
The following user(s) said Thank You: albert

Re: change icon on grid 14 May 2012 10:51 #2346

  • albert
  • albert's Avatar
  • Offline
  • Senior Member
  • Posts: 70
  • Thank you received: 2
  • Karma: 2
Thanks,

It is very convenient when you want to change the icon for the same task on all forms, but if you only want to change the icon for that task on that concrete grid !??
The administrator has disabled public write access.

Re: change icon on grid 14 May 2012 10:57 #2347

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
components/component_name/views/view_name/view.html.php
and edit
		// Toolbar
		jimport('joomla.html.toolbar');
		$bar = & JToolBar::getInstance('toolbar');
		if ($access->get('core.edit') || $access->get('core.edit.own'))
			$bar->appendButton( 'Standard', "edit", "XXX_JTOOLBAR_EDIT", "edit", true);

		$lists['toolbar'] = $bar;
For example
The administrator has disabled public write access.
The following user(s) said Thank You: admin, albert
Time to create page: 0.115 seconds

Get Started