Jump to:

513 Posts in 209 Topics by 259 members

Content Editor Discussions

SilverStripe Forums » Content Editor Discussions » How can I make image rotate and have hyperlinks

Forum for content editors and CMS users.

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

Page: 1 2
Go to End
Author Topic: 5520 Views
  • Singh
    Avatar
    Community Member
    9 Posts

    Re: How can I make image rotate and have hyperlinks Link to this post

    Hi Everyone

    Its all working good now, i had some minor issues, it was working well in IE and not in Firefox, I deleted the top line which was <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    from the code which I copied from agile, and it all worked well.

    Thanks everyone for the support.

    Cheers
    Singh

  • d-virus
    Avatar
    Community Member
    21 Posts

    Re: How can I make image rotate and have hyperlinks Link to this post

    How implement Agile carrousel in my silverstripe site?
    i download the file jquery.agile_carousel-alpha.2.zip, but i dont know

    which is the next step???

  • Moreno
    Avatar
    Community Member
    4 Posts

    Re: How can I make image rotate and have hyperlinks Link to this post

    Hi all! I'd like to put an image carousel in my homepage picking the images to use from my authorpage pages were I have for each one a reference image. The author page is made following the tutorial "extending a basic site".
    The problem is how to find the image from that kind of pages to use it in the homepage. How to write the correct query? I can have other data from that page but not the image that have a has_one relation.
    Here the code...

    /**
    *Define the author page type
    */
    class AuthorPage extends Page {
       static $db = array(
       'AuthorName' => 'Text',
       'AuthorType'=>'Text'   
       );
       static $has_one = array(
       'ImgAnteprima'=>'Image'
       );
       //static $icon = "mysite/images/news";
       
    function getCMSFields() {
       $fields = parent::getCMSFields();
       
       $fields->addFieldToTab('Root.Content.Main', new TextField('AuthorName'), 'Content');
       $fields->addFieldToTab('Root.Content.Main', new TextField('AuthorType'), 'Content');
       $fields->addFieldToTab("Root.Content.Images",new ImageField('ImgAnteprima'));

       return $fields;   
       }   
       
    }

    5520 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.