Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Random content display - Newbie

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 3035 Views
  • CriaturaCreativaStudio
    Avatar
    Community Member
    73 Posts

    Re: Random content display - Newbie Link to this post

    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

    3035 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.