Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
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 following user(s) said Thank You: albert

Please Log in or Create an account to join the conversation.

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

  • albert
  • albert's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 70
  • Thank you received: 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 !??

Please Log in or Create an account to join the conversation.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
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 following user(s) said Thank You: admin, albert

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.114 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started