From b38ae7a66f38598e3e3edde6fcb2922bbf8150a3 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 5 Sep 2007 06:42:57 +0000 Subject: [PATCH] Used updates in r41285 to have appropriately generated links from the CMS to the subsites --- code/SiteTreeSubsites.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/SiteTreeSubsites.php b/code/SiteTreeSubsites.php index 14f13fa..a79e5e8 100644 --- a/code/SiteTreeSubsites.php +++ b/code/SiteTreeSubsites.php @@ -128,6 +128,10 @@ class SiteTreeSubsites extends DataObjectDecorator { // Need to set the SubsiteID to null incase we've been in the CMS Session::set('SubsiteID', null); } + + function alternateAbsoluteLink() { + return "http://" . $this->owner->Subsite()->domain() . $this->owner->Link(); + } } ?> \ No newline at end of file