Announcements
Hi Experts,
I have created a custom field 'Page ID' on the web page entity and have assgned a value in theis fielfd for all my web pages. I would like to display this number on the footer of my web pages. I have created a web template with the following code:
{% assign x = entities['adx_webpage'][request.params.adx_webpageid] %} {{ x.adx_webpageid }}
and i get an error Liquid error: Value cannot be null. Parameter name: key.
I have tried the same code passing a GUID string into the variable and that works so it leads me to believe that the request.params is not calling the record GUID.
Any help would be appreciated thanks.
Hi,
If the issue has been solved, it would be appreciated if you could click "Yes" to verify my answer.
If there is any further doubt, please do not hesitate to let me know.
Hi,
Have you set up Entity Permissions for the entity "adx_webpage"?
And you can adjust the code into the following way.
{% if request.params.adx_webpageid %} ... {% endif %}
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156