Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Modules - Class ContentImages not found

Class ContentImages not found 01 Aug 2013 09:35 #10656

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Hello,

We are trying to make a small Module that render some data from our ready J-Cook Component.

Using :
<?php echo JDom::_('html.fly.file', array(
'attrs' => array('center','fit','format:png'),
'dataKey' => 'icon',
'dataObject' => $row,
'height' => 26,
'indirect' => true,
'root' => '[DIR_XXXXXCATEGORIES_IMAGE]',
'route' => array('view' => 'xxxxcontent','layout' => 'contentd','filter_category_id' => $row->id),
'width' => 26
));?>

Produces the error : Class ContentImages not found

Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/xxxx/administrator/components/com_xxxxx/dom/html/fly/file/image.php on line 74

Everything went fine with strings and text data but not with Images.

It gives up the message "Class ContentImages not found"

Please help ASAP !

Thank you in advance.
The administrator has disabled public write access.

Class ContentImages not found 03 Aug 2013 15:25 #10669

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Ok, this is normal.
It is not explained yet because no documentation....

Add this in your view or template file, before to call JDom
$dom = JDom::getInstance();
$dom->set('extension', 'com_xxxxxx');

Note : When you get 'Not suported' image, it often means that the size is not allowed because not present in the expected predefined sizes.

Hope it works now for you.

I am so sorry I could told you this before.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: Pantelis

Class ContentImages not found 06 Aug 2013 21:53 #10697

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Dear Admin,

Thank you it works,

Now it has another problem with the view.

When i click on the image (Link) it shows joomla error 500 ... something i have to change to the route section of image !
'route' => array ( 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),

http://localhost/cine = root of the site

the link now : http://localhost/cine/cinema?view=movie&layout=movie&cid%5B0%5D=5

must be : http://localhost/cine/movies?view=movie&layout=movie&cid%5B0%5D=5

How can i do that inside my module ?
Last Edit: 06 Aug 2013 21:54 by Pantelis.
The administrator has disabled public write access.

Class ContentImages not found 07 Aug 2013 16:23 #10709

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Did you tried this :
'route' => array ( 'option' => 'com_cinema', 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.122 seconds

Get Started