stale-greece-65998
03/04/2024, 5:35 PMruby
field :parents, as: :has_many, through: :parent_mappings, use_resource: Avo::Resources::Content, name: "Parents"
In the above example for some reason I also needed to specify name
otherwise it would incorrectly call the field contents
instead of parents
.
NB: I might not answer soon as I'll be offline 2 weeksloud-jewelry-99127
03/05/2024, 7:26 AMattach_scope
is what you're looking for: https://docs.avohq.io/3.0/associations/has_many.html#attach_scopestale-greece-65998
03/05/2024, 7:47 AMloud-jewelry-99127
03/05/2024, 7:48 AMloud-jewelry-99127
03/05/2024, 7:48 AMstale-greece-65998
03/05/2024, 7:50 AMfield
DSL, so it should be documented on the fields documentation page"
Another option could be to make sure the documentation system overrides the Control-F keyboard shortcut to make sure that search is made across the entire documentation and not only the current page.
Yet another alternative is to render the entire documentation as a "single page"
Stripe docs combine those two approaches: infinite scroll and the control-F keyboard shortcut opens a modal which searches across everythingloud-jewelry-99127
03/05/2024, 7:52 AMloud-jewelry-99127
03/05/2024, 7:54 AMstale-greece-65998
03/05/2024, 8:05 AMloud-jewelry-99127
03/05/2024, 8:07 AM