aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-02-12 15:31:08 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-02-12 15:31:08 +0100
commit0937c851313b5098dc15e5d411b6c3638cbd5116 (patch)
tree1f94253f58cbe3e53e84bed6e51a03d20985f941 /app/view/templates
parentd39242c494d9e9aca17f4202fbb78ebd6cb6141b (diff)
downloadwcms-0937c851313b5098dc15e5d411b6c3638cbd5116.tar.gz
wcms-0937c851313b5098dc15e5d411b6c3638cbd5116.zip
new feature : filter by link to
Diffstat (limited to 'app/view/templates')
-rw-r--r--app/view/templates/home.php2
-rw-r--r--app/view/templates/homeopt.php24
2 files changed, 25 insertions, 1 deletions
diff --git a/app/view/templates/home.php b/app/view/templates/home.php
index 68cf965..63a63e1 100644
--- a/app/view/templates/home.php
+++ b/app/view/templates/home.php
@@ -132,7 +132,7 @@
<td class="linkto"><a title="<?= $item->linkto('string') ?>"><?= $item->linkto('sort') ?></a></td>
<?php }
if ($columns['linkfrom']) { ?>
- <td class="linkfrom"><a title="<?= $item->linkfrom('string') ?>"><?= $item->linkfrom('sort') ?></a></td>
+ <td class="linkfrom"><?= $opt->linktolink($item->linkfrom('array')) ?></td>
<?php }
if ($columns['datemodif']) { ?>
<td class="datemodif"><time datetime="<?= $item->datemodif('string') ?>" title="<?= $item->datemodif('dmy') . ' ' . $item->datemodif('ptime') ?>"><?= $item->datemodif('hrdi') ?></time></td>
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php
index 05f8d27..d1f70da 100644
--- a/app/view/templates/homeopt.php
+++ b/app/view/templates/homeopt.php
@@ -117,7 +117,31 @@
</fieldset>
<fieldset>
+ <legend>Link to</legend>
+
+ <label for="linkto" title="filter pages that have links pointing to the following selected page">Link pointing to</label>
+ </br>
+ <select name="linkto" id="linkto">
+ <option value="" selected>-- not set --</option>
+ <?php
+ foreach ($opt->pageidlist() as $id) {
+ if ($id === $opt->linkto()) {
+ $selected = ' selected';
+ } else {
+ $selected = '';
+ }
+ echo '<option value="' . $id . '"' . $selected . '>' . $id . '</option>';
+ }
+ ?>
+ </select>
+ </fieldset>
+
+
+
+
+ <fieldset>
<legend>Other</legend>
+
<?php