Skip to main content

Source query For General Link FiledField Type

Fixed grammar, improved formatting and added relevant tag.
Source Link
Sumit Helaiya
  • 3.2k
  • 2
  • 12
  • 23

We need to use a source query for General Linkthe General Link field type so that it display'sto display only the current page's data. In Sitecore xmcXM 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']

query:./*[@@templatename='Page Data']

Further, we need to restrict the Link field type to be as Internal Field Typethe 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

We need to use source query for General Link field type so that it display's only the current page's data. In Sitecore xmc, is there any way we can achieve it from front code (NextJs) as source query is not working from the Sitecore. e.g Below query

query:./*[@@templatename='Page Data']

Further, we need to restrict Link field type to be as Internal Field Type.

Is there any way this can be achieved (if not from Sitecore, from front end in the component's logic)?

Thanks, Shrutika

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

Source Link

Source query For General Link Filed Type

We need to use source query for General Link field type so that it display's only the current page's data. In Sitecore xmc, is there any way we can achieve it from front code (NextJs) as source query is not working from the Sitecore. e.g Below query

query:./*[@@templatename='Page Data']

Further, we need to restrict Link field type to be as Internal Field Type.

Is there any way this can be achieved (if not from Sitecore, from front end in the component's logic)?

Thanks, Shrutika