Hi I want to make…
when I go to …/works/tag:architerior, i want to make showing current tags as a text.
so I use “<?= $page->tags() ?>” but nothing appear.
also I want to edit this …
Will show the current tag from the URL, if that’s what you mean.
$items = $works->children()->listed();
if ($tag = param('tag') {
$items = $items->filterBy('tags', $tag, ','); // assuming your field is called `tags`, modify as needed
}
foreach ($items as $item) {
// ...
}
wow!!! It works!! super!! thank you very much!!
you are an angel…
can I ask one more things?
I am making index page now… I want to load every tags. I already read this page:
but my page showing like this…
"
[Asan Xi Grand Park]
[Songdo Global Academic Complex]
[The Sharp the Arstie]
[The Sharp LePRIVE]
[Geomdan Xi] listed listed listed listed listed
This comes from your second foreach loop which echos the status of the page (listed, unlisted, draft). To be honest, I don’t know why you have this loop at all.
ahhh… I deleted second one!
I mean… I just want to load every tags(year,status,client,category…etc) as a list.
I have 5 types of tags…
but when I use this code: