Skip to content

Commit 0e6e131

Browse files
committed
Make friendlyURL variable parametrizable
Added friendlyTargetUrl parameter (could be named different) Added target placeholder
1 parent e64332d commit 0e6e131

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: core/components/tagger/elements/snippets/taggergettags.snippet.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
$offset = intval($modx->getOption('offset', $scriptProperties, 0));
5454
$totalPh = $modx->getOption('totalPh', $scriptProperties, 'tags_total');
5555

56+
$friendlyURL = $modx->getOption('friendlyTargetUrl', $scriptProperties, $modx->getOption('friendly_urls', null, 0));
57+
5658
$sort = $modx->getOption('sort', $scriptProperties, '{}');
5759
$sort = $modx->fromJSON($sort);
5860
if ($sort === null || $sort == '' || count($sort) == 0) {
@@ -139,8 +141,6 @@
139141

140142
$out = array();
141143

142-
$friendlyURL = $modx->getOption('friendly_urls', null, 0);
143-
144144
// prep for &tpl_N
145145
$keys = array_keys($scriptProperties);
146146
$nthTpls = array();
@@ -167,6 +167,7 @@
167167

168168
$phs['uri'] = $uri;
169169
$phs['idx'] = $idx;
170+
$phs['target'] = $target;
170171

171172
if ($translate == 1) {
172173
$groupNameTranslated = $modx->lexicon('tagger.custom.' . $phs['group_alias']);

0 commit comments

Comments
 (0)