Hi,
I'm using Silverstripe 3.05
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
- Previous 10 entries
- 1
- Page 22(current)
Beho,
It has been a couple months since I worked with this, but I believe I was able to get the module working in 3.0.x by using normann's pull request on github.
Hi,
ähm, where should i put the extensions.yml and routes.yml?
should i create a new folder in the modules root direcotry called _config?
edit: i put them in cms/_config
was that right?
thx a lot :) it seems to work now.
but one problem is left.
i can't access my page where i upload the files. i always receive an server error ... :/
here that's the pagetype and dataobject code:
<?php
class FilesObject extends DataObject {
static public $db = array(
'SortID' => 'Int',
'Project' => 'Text',
'Date' => 'Date'
);
static public $has_one = array (
'ProjectFile' => 'File',
'ClientPage' => 'ClientPage'
);
static $summary_fields = array(
'Project',
'Date',
'ProjectFile'
);
public static $default_sort = 'SortID Asc';
public function getCMSFields() {
DateField::set_default_config('showcalendar', true);
$file = new UploadField('ProjectFile', 'Datei');
$file->setFolderName('Clients');
return new FieldList(
new TextField('Project', 'Projekt'),
DateField::create('Date', 'Datum')->setConfig('showcalendar', true),
$file
// $visual,
);
}
}
<?php
class ClientPage extends Page {
static $has_many = array(
'Files' => 'FilesObject'
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Dateien', GridFieldBase::getGridField('Dateien', _t('Dict.Dateien', 'Dateien'), $this->Files()));
return $fields;
}
}
class ClientPage_Controller extends Page_Controller {
}
is there a mistake in my code?
i hope you could help me.
thx in advance
benni
edit: i added the debug output. but it says nothing to me :/
- Previous 10 entries
- 1
- Page 22(current)