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.

Content Editor Discussions /

Forum for content editors and CMS users.

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

How can I make image rotate and have hyperlinks


Go to End


11 Posts   10057 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