Hi,
I am just starting with Power Portals and I have this question. In one page I have a list component where I display an entity, when I click in one record I want to show the details in another page.
With this code I can access the entity:
Announcements
Hi,
I am just starting with Power Portals and I have this question. In one page I have a list component where I display an entity, when I click in one record I want to show the details in another page.
With this code I can access the entity:
Hi Matt,
Thanks. I already solved it in a similar way:
<div class="col-md-4 columnBlockLayout" style="display: flex; flex-direction: column;">
{% assign objectId = request.params['id'] %}
{% assign object = entities.cr21d_object[objectId] %}
{% if object %}
<b>Store</b>
{{ object.cr21d_name }}</p>
<b>Country</b>
{{ object.cr21d_country }}</p>
Apart from that I had to assing Entity Permissons in the Portal Management or I would get empty results.
Hi Pedro,
There is an object in liquid called "request". The "request" object contains all information about the URL, parameters, etc. that you will need.
In order to retrieve the parameter, all you need is the following line:
{% assign requestId = request.params.id %}
If your parameter was called "recordid", for example, the code would look like:
{% assign requestId = request.params.recordid %}
I hope this helps, and feel free to ask me any questions you might have!
Thanks!
Matt Bayes
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35