Skip to content

Commit

Permalink
Suggest xPath
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshoerrmann authored and brendo committed Sep 28, 2014
1 parent c3fe499 commit 51e8615
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions content/content.importers.php
Expand Up @@ -648,13 +648,16 @@ public function __viewEdit() {
// Included Elements --------------------------------------------------

$label = Widget::Label(__('Included Elements'));
$label->appendChild(Widget::Input(
'fields[included-elements]', General::sanitize(
$input = Widget::Input(
'fields[included-elements]',
General::sanitize(
isset($this->_fields['included-elements'])
? $this->_fields['included-elements']
: null
)
));
);
$input->setAttribute('placeholder', '/data');
$label->appendChild($input);

if (isset($this->_errors['included-elements'])) {
$label = Widget::Error($label, $this->_errors['included-elements']);
Expand Down

0 comments on commit 51e8615

Please sign in to comment.