Related items not working…

According to robot:

Here’s a quick setup:

  1. Ensure Your Page is PHP: Make sure your page uses a .php extension since CMS components need it.
  2. Add a Collection: Use the Collection component for listing data.
  3. Include Related Items: Within your Collection or Static Item, drop the Related Items component. This will auto-fetch and display items related to the current context.
  4. Style with Tailwind: You can add Tailwind classes for styling it to match your design.

Mine isn’t doing #3 auto fetching - got an 8 song test with tags…

I dont think tags work yet

You could try turning off ‘by tags’ … then preview in browser and see if that works

Make sure ‘Related Items’ is under ‘Item’ in your ‘Page Layout’ Tree

Also — make sure you name your page xxx.php

Don’t know where I got this code ‘saved’ it . Maybe from CMS manual documents?


Related Tags Code

@raw()
    {% if item.tags %}
        <div class="tags">
            {% for tag in item.tags %}
                <span class="tag">
                    {{tag.name}}
                    {% if tag.description %}
                        <span class="tag-description">{{tag.description}}</span>
                    {% endif %}
                </span>
            {% endfor %}
        </div>
    {% endif %}
@endraw()


{{genre|join(', ')}}{{mood|join(', ')}}{{instrumentation|join(', ')}}

Thought maybe needed to use above?

Don’t know at all… I’m a trial and error person
Trying to make it work… read the manuals and try…