Hi, I’m struggling with this problem for hours and days now.
I have different articles on my website and each article can have multiple tags (field of type multiselect). On each of them article sites I also want to recommend three more articles that have the most agreement of those tags.
For example:
Article1 has topics A, B, C
Article2 has topic B, D
Article3 has topic B, C
Article4 has topic C
Article5 has topic A, B, C
Article6 has topic A, B, C, D
When I’m on the site of Article1 I also want to show the Articles 5, 6 (because they both have all the tags that has Arcticle1) and Article3 (because we want to recommend 3 articles and Article3 has the most agreent after Article 5 and 6.
I am not sure how to implement that so it is efficient. I have already an idea but I don’t know if it is possible with kirby since it’s not a real programming language. Are there any Kirby methods I can use or is it possible to iterate through an array like array[int i]? Nothing seems to work and what is working is pretty unefficient.

