Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Error Feed-me import #143

Open
bartdepotter opened this issue May 31, 2024 · 0 comments
Open

Error Feed-me import #143

bartdepotter opened this issue May 31, 2024 · 0 comments

Comments

@bartdepotter
Copy link

An error occurs when mapping a feed.
The {% for %} tag’s support for the if param is removed in Craft4. Use |filter instead.

Code needs to be changed in templates/_feedme/map.html.

Line 68
{% for field in fields if field and craft.feedme.fieldCanBeUniqueId(field) %}

Needs to be

{% for field in fields|filter(field => field and craft.feedme.fieldCanBeUniqueId(field)) -%}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant