7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Default configuration?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 589 Views |
-
Default configuration?

11 March 2010 at 7:08am
How would I proceed to add default configuration values for thumbnail sizes and such?
I had a problem with pages on a site I did for a client that generated errors. Turned out because the configuration values were missing, it made GD crash and the page failed to load. I can manage to always set the configuration, but I would like to avoid that burden to my client, who should only have to set a page to Gallery for it to work.
-
Re: Default configuration?

11 March 2010 at 7:12am
Well looking at the code... it seems there already are default values set...
But I still get this error:
Error at sapphire/filesystem/GD.php line 123: No dimensions given (http://vaguedecirque-staging.strangeelement.com/duo-symbiose-photos-fr/)
The error thrown is in GD::resize
if(!$width && !$height) user_error("No dimensions given", E_USER_ERROR);
-
Re: Default configuration?

11 March 2010 at 8:36am
You need to set your thumbnail width. The default values don't apply unless you create the page new. It doesn't work when you convert it from an old page type.
-
Re: Default configuration?

11 March 2010 at 1:33pm
Is there a way then to catch a page type change to apply the defaults?
| 589 Views | ||
|
Page:
1
|
Go to Top |

