Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Random content display - Newbie


Go to End


9 Posts   4986 Views

Avatar
CriaturaCreativaStudio

Community Member, 73 Posts

12 April 2011 at 12:21pm

Hi!

I'm going to use this code, but in my case i will need an imagefield also....

So the question is, where should i insert that field...

it is ok if i put the image in that array?

<?php
class Quote extends DataObject
{
static $db = array (
'Author' => 'Varchar(100)',
'Quote' => 'Text'
'ImagenArea'=> 'Image'
);

thanks in advance

Eduardo

Go to Top