In the Layout Manager, I want to change for a selection of layers the name displayed in legend without changing the layer names.
I am using QGIS 3.16
I am getting the legend entry names from the layer metadata (in my case the 'Title' data)
This is what I have tested so far:
I went to the legend Items Menu
Edit icon
and I am trying to build an expression to display the title metadata
Expressions tested:
attribute('title')
-->Preview No feature was found on this layer to evaluate the expression.
display_expression(@layer,'title')
--> Preview: Expression invalid
...