481 Posts in 150 Topics by 238 members
| Go to End | ||
| Author | Topic: | 4899 Views |
-
Re: How can I make image rotate and have hyperlinks

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 -
Re: How can I make image rotate and have hyperlinks

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 knowwhich is the next step???
-
Re: How can I make image rotate and have hyperlinks

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;
}
}
| 4899 Views | ||
| Go to Top |



