Prihlásiť sa | Zabudnuté heslo | Registrovať

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.

76 príspevkov v 21 témach | 9 členov

Skok na:

Všeobecná diskusia

Ak ste na stránke prvý kát, nezabudnite sa zaegistrovať! Vďaka registrácii budete môcť aktívne vstúpiť do diskusného fóra (vytvoriť Vlákno alebo pridať príspevok do existujúceho vlákna).

Diskusné fórum » Všeobecná diskusia » gridField Bulk Upload Not Found

Strana: 1 Dole
Autor Téma: gridField Bulk Upload Not Found 3172 Views
  • Slimo
    Avatar
    Community Member
    13 posts

    gridField Bulk Upload Not Found Link to this post

    Ahojte prosim potrebujem pomoct, mam SS 3.1.2 a tam som si dal tieto moduly:
    GridFieldBulkEditingTools
    SortableGridField
    ss3Gallery

    Problem:
    ked nahram obrazok cez "Pridať Press Detail Image" nahra obrazok bez problemu.
    ale ked nahram obrazok cez "Bulk Upload" a vyberiem fotku vyskoci mi na pravo hore varovny lightbox "Not Found"

    Mam kod:

    --------------------------------------------
    Page

    class PressDetail extends Page {
       public static $db = array(
          
       );

       public static $has_one = array(
       );
       
       public static $has_many = array(
        'PressDetailImage1' => 'PressDetailImage'
       );
       
       public static $many_many = array(
       );
       
       public function getCMSFields() {
    $fields = parent::getCMSFields();
          
    $gridFieldConfig = GridFieldConfig_RecordEditor::create();
    $gridFieldConfig->addComponent(new GridFieldBulkEditingTools());
    $gridFieldConfig->addComponent(new GridFieldBulkImageUpload());

    $gridfield = new GridField("PressDetailImage1", "Add Contacts", $this->PressDetailImage1(), $gridFieldConfig);

    $fields->addFieldToTab('Root.Contacts', $gridfield);

    return $fields;
    }
    }
    class PressDetail_Controller extends Page_Controller {
       
    }
    ?>

    --------------------------------------------
    DataObject

    <?php
    class PressDetailImage extends DataObject {
       public static $db = array(   
        'SortOrder' => 'Int',
        'Title' => 'Varchar(255)',
    );

    public static $has_one = array(
    'Obrazok' => 'Image',
       'PressDetail' => 'PressDetail'
    );

    public function getCMSFields() {
          $fields = parent::getCMSFields();
          $fields->removeFieldFromTab("Root.Main","PressDetailID");
          $fields->removeFieldFromTab("Root.Main","SortOrder");
          return $fields;
    }

    // Tell the datagrid what fields to show in the table
    public static $summary_fields = array(
        'ID' => 'ID',
        'Title' => 'Nadpis',
        'getThumbnail' => 'Obrázok'
    );

    // this function creates the thumnail for the summary fields to use
    public function getThumbnail() {
             if ($Image = $this->Obrazok()->ID) {
                return $this->Obrazok()->SetWidth(300);
             } else {
                return '(No Image)';
             }
          }

    }

    ?>

  • Pali
    Avatar
    Administrator
    80 posts

    Re: gridField Bulk Upload Not Found Link to this post

    Ahoj,

    ked zapnes firebug alebo obdobu v chrome, tak vypisuje vsetky ajaxove dotazy na server pri niektorych CMS akciach. Pozri detail chyby.

    Pripadne loguj chyby do suboru.

    Tazko bez toho pomozem, lebo kod vyzera OK.

    Pali

  • Slimo
    Avatar
    Community Member
    13 posts
  • Pali
    Avatar
    Administrator
    80 posts

    Re: gridField Bulk Upload Not Found Link to this post

    obycajny uploadfield funguje? lebo ta kontrola, ci existuje nahravany subor je pritomna aj pri obyc. UploadField...

    v kazdom pripade to bude asi chyba bulkUpload modulu a snazil by som sa hladat riesenie v issues toho modulu na githube.

  • Slimo
    Avatar
    Community Member
    13 posts

    Re: gridField Bulk Upload Not Found Link to this post

    Praveze obycajny funguje bez problemov.

    ked kliknem na tu chybu tak mi napisalo: Action 'bulkImageUploadForm' isn't available on class GridFieldBulkImageUpload_Request.

  • Pali
    Avatar
    Administrator
    80 posts

    Re: gridField Bulk Upload Not Found Link to this post

    BulkUpload modul mate v aktualnej verzii?

    Este jedna drobnost, ktora s tym asi nesuvisi:

    vsetky staticke ako napr. public static $db = array( ) ... maju byt vo verzii 3.1. private...

    Obrattte sa s chybou na tvorcu modulu, neviem vam narychlo pomoct

    3172 Views
Hore

Práve online: Nikto nie je online.

Najnovší člen fóra: WilliamFaw