cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to get current webpage name using liquid code

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

1 ACCEPTED SOLUTION

Accepted Solutions
OOlashyn
Super User
Super User

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.

----------------------------------------------------
If you find this post helpful consider marking it as a solution to help others find it.

View solution in original post

2 REPLIES 2
OOlashyn
Super User
Super User

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.

----------------------------------------------------
If you find this post helpful consider marking it as a solution to help others find it.

View solution in original post

OliverRodrigues
Super User II
Super User II

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




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,964)