Hi guys,
I’m trying to get the filename of a page. My best attempt so far is:
{% set page_filename = page.filePath()|slice(page.path()|length)|ltrim('/') %}
Do you know any other way to achieve this? AFAIK, there is not any inbuilt function, like e.g.page.fileName()
, exposed trough the page
object to do this.
Thank you very much for your time and congratulations for your remarkable work.