collective / collective/collective.easyformplugin.createdx
map context fields
- Dominant language
- Python
- Stars
- 6
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
**Mapping context fields.**
Could it be an idea to map context fields if 'mapping field does not exist'?
For example, if I map
> title title
And if EasyForm title does not exist => title = context.title
Some kind of checking, for title this works:
if "id" in mappings and mappings["id"]:
title_or_id = mappings["id"]
elif "title" in mappings and mappings["title"]:
title_or_id = mappings["title"]
elif context.title:
#use title or some other field
title = context.Title()
mappings["title"] = title
title_or_id = title
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.