Hi Experts,
I am trying to get the current webpage name using liquid code but I can find only one way i.e to get the page title using below:
{{ page.title }}
But I want to get the Page name not the title because in some case title is empty on the web page.
Is there any way by which I can get the web page name?
Thanks,
Amit
Hi, you can use the following to get the name of the record
{{ page.adx_name }}
I personally recommend adding prefix to any custom object you might create in the Portal, so for example:
AMIT My Custom Web Page
the reason for this is to quickly and visually separate your components from OOB components.. I do this for nearly all Portal objects, you just can't do this for Web Links and a few other things
Hi @Anonymous ,
You can use adx_name field to get the name of the web page (like this {{page.adx_name}}). You can do it because page object is reference to web page entity in CDS and adx_name is Name field from it.
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional