Open mhsdesign opened 10 months ago
Sounds really good. But just to be clear: This does not affect the existing editor and its output, right?
Yes exactly. This feature is only available for the type: 'Sitegeist\Archaeopteryx\Link'
. If you use "string" everything will stay as is ;)
(Im thinking about allowing fragments also for strings (if enabled) as it would be possible to encode this into the uri (obviously))
Does this work in your project? @mficzel or @nezaniel? in that case we should resolve the conflicts and merge?
yep, works
This feature introduces a php link value object which can also be used as node property with editor support.
Advanced Inspector Editor Configuration with
Sitegeist\Archaeopteryx\Link
value object type:As the value object can serialize more than just the
href
we can also edit other link related options liketitle
and thetarget
.The link value object can be queried as usual. An example rendering would look the following:
To try this feature out already, require this dev branch in your composer root:
Demo Video:
https://github.com/sitegeist/Sitegeist.Archaeopteryx/assets/85400359/821b6b14-9e06-4727-9348-7235aece56ef