Skip to content

2.16.0

Compare
Choose a tag to compare
@jonnitto jonnitto released this 13 Nov 23:53
· 5 commits to master since this release
17c7ab1

✨ New Eel helper

Carbon.String.getPropertyFromNodeLink(node, value, propertyName, fallback)

Get a property from a node link. Can be used to get the title from a page who is linked via the link editor.

Example:

Expression Result
Carbon.String.getPropertyFromNodeLink(site, 'node://aaaa-bbbb-ccc') 'Title from the linked page'
Carbon.String.getPropertyFromNodeLink(site, 'node://aaaa-bbbb-ccc', null) null
Carbon.String.getPropertyFromNodeLink(null, 'node://aaaa-bbbb-ccc') null
Carbon.String.getPropertyFromNodeLink(site, 'some other value') null
Carbon.String.getPropertyFromNodeLink(site, 'some other value', 'title', 'fallback value') 'fallback value'
  • node (NodeInterface) The node, usally site
  • value (string) The value to process
  • propertyName (string) The name of the property to get
  • fallback (mixed) The fallback value if nothing is found

Full Changelog: 2.15.2...2.16.0