Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

896 Posts in 260 Topics by 243 members

E-Commerce Module

SilverStripe Forums » E-Commerce Module » Multiple Image per Product

Discuss the E-Commerce Module.

Page: 1
Go to End
Author Topic: Multiple Image per Product 220 Views
  • biapar
    avatar
    Community Member
    138 posts

    Multiple Image per Product Link to this post

    How is possible to insert multiple image for product?

    I've read some posts ( http://www.silverstripe.org/archive/show/7715?start=16 ) but I've these error:

    Warning] Unknown class passed as parameter
    GET /ss/images/iframe/ImageAttachment/8/Image

    Line 2553 in C:\xampp\htdocs\ss\sapphire\core\model\DataObject.php
    Source

    2544     * Return the given element, searching by ID
    2545     *
    2546     * @param string $callerClass The class of the object to be returned
    2547     * @param int $id The id of the element
    2548     *
    2549     * @return DataObject The element
    2550     */
    2551    public static function get_by_id($callerClass, $id) {
    2552       if(is_numeric($id)) {
    2553          if(is_subclass_of($callerClass, 'DataObject')) {
    2554             $tableClasses = ClassInfo::dataClassesFor($callerClass);
    2555             $baseClass = array_shift($tableClasses);
    2556             return DataObject::get_one($callerClass,"`$baseClass`.`ID` = $id");
    2557
    2558             // This simpler code will be used by non-DataObject classes that implement DataObjectInterface
    2559          } else {

    Trace

    * is_subclass_of(ImageAttachment,DataObject)
    Line 2553 of DataObject.php
    * DataObject::get_by_id(ImageAttachment,8)
    Line 533 of Image.php

    Thank you

    220 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: Newclear

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.