Expose some page
fields in assigns for templates
#465
Labels
area:content
Related to Content API and Content Management
good first issue
Good for newcomers
help wanted
Extra attention is needed
Some page fields should be exposed as assigns to be used on templates, which is useful for example to access custom extra fields. For example defining a
tags
page field it should be made available as@beacon.page.extra["tags"]
or similar.We can't expose all fields directly because some require post-processing like the
title
field which may contain Liquid expressions, so we could concentrate all exposed fields under@beacon.page
.For reference the
@beacon
assign is built atbeacon/lib/beacon_web/live/page_live.ex
Line 80 in cce94be
The text was updated successfully, but these errors were encountered: