Is there a some way configure preset to other input from pagefinder widget?
title:
label: Title of link
type: text
preset:
field: link.title
type: exact
link:
label: Link
type: pagefinder
singleMode: true
Is there a some way configure preset to other input from pagefinder widget?
title:
label: Title of link
type: text
preset:
field: link.title
type: exact
link:
label: Link
type: pagefinder
singleMode: true
Not quite, but you can extract it from the value
In Twig
{% set resolved = link('october://cms-page@link/about?title=foobar') %}
{{ resolved.title }}
In PHP
$link = Cms\Classes\PageManager::instance()->resolve('october://cms-page@link/about?title=foobar');
$link->title;
This would make it possible to do with dependsOn
and filterFields
in the model…
thanks, I solved it in a similar way