Navigation via JavaScript
Navigate to URL
Navigate to a URL once selected drop-down is changed:
<select data-global-event="change" data-action-navigate="$value">
<!-- ... options ... -->
</select>
Copied!
$value
refers to the selected value.
Navigate to URL with data
Navigate to a URL on change of a drop-down, including the selected value in the URL:
<select
value="0"
name="depth"
data-global-event="change"
data-action-navigate="$data=~s/$value/"
data-navigate-value="https://example.org/${value}"
>
<!-- ... options ... -->
</select>
Copied!
$data
refers to value of data-
, $value
to selected value,
$data=~s/$value/
replaces the literal $
with the selected value in
data-
.
Show info popup
Invoke the TYPO3.
module function to display details
for a given record:
<a
class="btn btn-default"
href="#"
data-dispatch-action="TYPO3.InfoWindow.showItem"
data-dispatch-args-list="be_users,123"
>
Some text
</a>
Copied!
or (using JSON arguments)
<a
class="btn btn-default"
href="#"
data-dispatch-action="TYPO3.InfoWindow.showItem"
data-dispatch-args="["tt_content",123]"
>
Some text
</a>
Copied!
Shows the info popup of database table tt_
, having uid=123
in
the example above.