mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
6c1f7997a4
HTML in tree nodes is already used to render page icons via SiteTree->TreeTitle. In order to select the initial value correctly via HTML5 data attributes, we need to encode any HTML values.
8 lines
410 B
Scheme
8 lines
410 B
Scheme
<div id="TreeDropdownField_$ID"
|
|
class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
|
|
data-url-tree="$Link(tree)"
|
|
data-title="$TitleURLEncoded"
|
|
<% if Description %>title="$Description"<% end_if %>
|
|
<% if Metadata %>data-metadata="$Metadata"<% end_if %>>
|
|
<input id="$ID" type="hidden" name="$Name" value="$Value" />
|
|
</div> |