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.

All other Modules /

Discuss all other Modules here.

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

Customization image gallery -> product page


Go to End


1135 Views

Avatar
Gaudino

Community Member, 8 Posts

17 March 2012 at 3:31am

Edited: 17/03/2012 3:31am

Hi,

I want to use image gallery modul for Silverstripe like the product page, but I have small problem with URL.

In original image gallery is the patch for example /photogallery/album/my_gallery

I need to change this URL like this: /photogallery/my_gallery ... without /album/

In code is

public function Link()
	{
		$name = $this->Folder()->Name;
		if(!$name) {
			$name = $this->FolderID;
		}
		return $this->ImageGalleryPage()->Link('album/'.$name);
	}

If I delete 'album/' ... so page not found.

Exist any solution for it?

Thanx