surfinzap / tota

Public repository for tota.sk—an NPO in Slovakia cherishing the Rusyn culture.
https://tota.sk
6 stars 2 forks source link

Add a rich text resolver for 'online_resellers_list' content type #2

Closed surfinzap closed 4 years ago

surfinzap commented 4 years ago

This one can be a bit tricky, because components needs to be resolved at more levels.

How it looks at current website

https://tota.sk/projekt/any-by-ste-ne-viryly → take a look at 'Internetové obchody'

How it is modelled in Kentico Kontent

sample response via delivery sdk Structure → 'online_reseller_list' is included as a component in a Rich-text →→ 1–n 'online_reseller_of_item' is included as linked item in a 'online_reseller_list' →→→ 1 'online_reseller' is included in 'online_reseller_of_item'

Todo

Write a resolver that would render the list of 1–n online resellers

surfinzap commented 4 years ago

This is not the same as the #4 because here online_reseller_of_item is linked via Linked Item component.

surfinzap commented 4 years ago

Ah, tuck it. I'll change it to rich-text and solved. I'm halfway through this issue, so I'll take it.

surfinzap commented 4 years ago

Resolved in → https://github.com/surfinzap/tota/commit/4d779830d0421f253dddfefedb02b8459007317f