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.

Content Editor Discussions /

Forum for content editors and CMS users.

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

How can I make image rotate and have hyperlinks


Go to End
Reply


11 Posts   6051 Views

Avatar
Singh

Community Member, 9 Posts

3 February 2009 at 1:54pm

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

Avatar
d-virus

Community Member, 21 Posts

17 May 2009 at 8:27am

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???

Avatar
Moreno

Community Member, 4 Posts

22 May 2009 at 4:26am

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;   
   }   
   
}

Go to Top