We have this cool little function for the website http://www.southcoastgallery.co.nz:
function ExhibitionLink(){
$exhibition = DataObject::get_one('Exhibition');
return $exhibition->URLSegment;
}
On the homepage, it means if you click on any of the images on the right, it should add ?imagenumber to the end.
However, this actually doesn't. The URL segment it creates is the default one when you make a new page, not the one and only existing exhibition page
We're not coders and I didnt even make this website and am stumped.
Help!!!!!