We need to use a source query for the General Link
field type to display only the current page's data. In Sitecore XM Clould, is there any way we can achieve it from the front code (NextJs) as the source query is not working from the Sitecore?
e.g Below query
query:./*[@@templatename='Page Data']
Further, we need to restrict the Link field type to the Internal Field Type
.
Is there any way this can be achieved (if not from Sitecore, from the front end in the component's logic)?
Thanks, Shrutika