This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
EgerStudio
Hi, I have a pivot field.yaml file with language syntax that is supposed to work, but I cannot seem to get the relations manager to pick up the translated text. Is this a known bug, or have I done something wrong here?
Here is my fields.yaml
# ===================================
# Form Field Definitions
# ===================================
fields:
pivot[is_active]:
label: egerstudio.rental::lang.schedules.is_active
default: 1
type: switch
pivot[valid_from]:
label: egerstudio.rental::lang.schedules.valid_from
type: datepicker
mode: date
pivot[valid_to]:
label: egerstudio.rental::lang.schedules.valid_to
type: datepicker
mode: date
pivot[price]:
label: egerstudio.rental::lang.schedules.unit_price
pivot[comment]:
label: egerstudio.rental::lang.schedules.comment
type: richeditor
size: large
And here is my config_relation:
schedules:
label: egerstudio.rental::lang.schedule.name
view:
list: $/egerstudio/rental/models/schedule/columnswithpivot.yaml
toolbarButtons: add|remove
manage:
list: $/egerstudio/rental/models/schedule/columns.yaml
showSearch: false
pivot:
form: $/egerstudio/rental/models/schedule/fieldswithpivot.yaml
EgerStudio
Ah! Sorry!
After posting I saw the error right away, "schedule" not "schedules" would be the way to go ;)
Anyway...
1-2 of 2