【发布时间】:2016-10-17 10:02:15
【问题描述】:
所以我有这个:
private static $has_one = array(
'ButtonLink' => 'SiteTree'
);
还有这个字段
$fields->addFieldToTab('Root.Main', TreeDropdownField::create("ButtonLink", "Page link", "SiteTree"));
以便用户可以将此 DataObject 链接到 SiteTree 中的页面。在前端,我试图将URLSegment 返回为:
$ButtonLink.Link
但它不返回任何东西。
【问题讨论】:
标签: php silverstripe