Hello,
I have several files which can have the same word into a same field.
I would like to look through the files and to display this word but only once.
As if the string is the same into the field of an other file, it just appear once (by choosing the first occurrence let say).
This is for an index.
Instead of having a list with:
John Doe
John Doe
John Doe
Bob bob
etc…
Just have :
John Doe
Bob bob
This solution displays indeed the similar content of the field artist of all the files.
<?php foreach($page->files() as $item): ?> <?php echo $item->artist()->kirbytext() ?>
<?php endforeach ?>
If anyone would have a starting point for me that would be great!
Thanks you!