Skip to content

Migrating from v2 to v3 - how to substitute 'relate' tag #5458

Discussion options

You must be logged in to vote

Well... I deleted the country fieldset from the location collection and re-added it.
Now things work! Maybe something migrated weirdly?
Things work as in, this syntax works:

{{ collection:location scope="loc" }}
    {{if country:slug == "canada"}}
        <a onclick="locationSelected('{{ loc:slug }}')" href="/{{ loc:slug }}">{{ loc:title }}</a><br>
    {{/if}}
{{ /collection:location }}

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@cmorierroy
Comment options

@jasonvarga
Comment options

@cmorierroy
Comment options

@jasonvarga
Comment options

@cmorierroy
Comment options

Comment options

You must be logged in to vote
4 replies
@jackmcdade
Comment options

@cmorierroy
Comment options

@jackmcdade
Comment options

@jasonvarga
Comment options

Answer selected by cmorierroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants