Yeah surprisingly, SS already has that meta tag in the CMS. I thought for sure that would solve it.
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.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Bug Reports
Pfff stupid.... I should have looked first....
Hm. I tested it on my laptop with ie8 and W7 and the popups shows fine....
Getting the: "An error occurred in your upload. The server did not accept it" error.
Followed the debug instructions found here: http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield&s=swfupload#troubleshooting
And now posting here as requested.
The error is around line 604 in $u->loadIntoFile...
if(class_exists("Upload")) {
// Hello //die("hello");
$u = new Upload();
// Hello //die("hello");
$u->loadIntoFile($_FILES['swfupload_file'], $file, $path);
// Error //die("hello");
}
Hope someone can help solve this.
Thomas
SS version 2.3.4
EDIT: This error was caused by wrong permissions in the assest/uploads folder, changed them to 777 and all ok.
I also havn't had major issues using IE8 (w7.64 & wxp.32) with the popup, but then I have a suspision it's forcing into compatability mode as the compatability button dissapeares when in SS. The one issue I have had is that IE(7/8?) doesn't apply the padding for the fade correctly so if you have an imagefield at the bottom the fade stops you pressing the 'replace image' and 'delete' buttons. I fixed this by hiding the fade in the CSS:
line 144 of dataobject_manager.css
.DataObjectManager-popup #fade {display: none;}
This hides the fade so it's not a proper fix, but personally I prefer it without the fade anyway.
Aram
EDIT: Caching was more agressive than I thought. Should have checked again by changing the name back, sorry!
When I use: SortableDataObject::add_sortable_class('HomePageEntry'); I get the following error when doing a dev/build:
...
For the rest everything looks fine, thanks for the good work!!!!!!
Check your code.. you've got whitespace somewhere. Make sure you're not closing your PHP tags.
I've found that it is not possible to have a DataObject that relates to itself.
In my case each product relates to other complimentary products and similar products.
Eg.
class Product extends DataObject
{
static $many_many = array(
'ComplimentaryProducts' => 'Product',
'SimilarProducts' => 'Product'
);
static $belongs_many_many = array(
'ComplimentaryProductsBelong' => 'Product',
'SimilarProductsBelong' => 'Product'
);
...
function getCMSFields() {
$fields = parent::getCMSFields();
$ComplimentaryManager = new ManyManyDataObjectManager(
$this,
'ComplimentaryProducts',
'Product',
array('Name' => 'Name'),
'getCMSFields_forPopup',
'Name != "' . $this->Name . '"'
);
$fields->addFieldToTab("Root.ComplimentaryProducts", $ComplimentaryManager);
...
In ModelAdmin when this runs I get 100% CPU usage and the server crashes. I don't get any errors in the Apache, PHP or SS error log. I guess there must be a never ending loop.
Any help would be appreciated.