Tiles: navigate in place when drilling down

fixes #192
This commit is contained in:
Thomas Gelf 2018-12-12 15:36:51 +01:00
parent 8b7311591f
commit 20b957a999
2 changed files with 4 additions and 2 deletions

View file

@ -192,6 +192,8 @@ class NodeTile extends BaseElement
$link = Link::create($node->getAlias(), $url); $link = Link::create($node->getAlias(), $url);
if ($node instanceof ImportedNode) { if ($node instanceof ImportedNode) {
$link->attributes()->add('data-base-target', '_next'); $link->attributes()->add('data-base-target', '_next');
} else {
$link->attributes()->add('data-base-target', '_self');
} }
} }
@ -210,7 +212,7 @@ class NodeTile extends BaseElement
null, null,
array( array(
'title' => $this->translate('Show tiles for this subtree'), 'title' => $this->translate('Show tiles for this subtree'),
'data-base-target' => '_next' 'data-base-target' => '_self'
) )
))->add(Link::create( ))->add(Link::create(
Icon::create('sitemap'), Icon::create('sitemap'),

View file

@ -21,7 +21,7 @@ class BpDashboardTile extends BaseElement
{ {
$this->add( $this->add(
Container::create( Container::create(
['class' => 'bp-link'], ['class' => 'bp-link', 'data-base-target' => '_main'],
Link::create( Link::create(
Icon::create($icon), Icon::create($icon),
$url, $url,