show elementname in list intro

venekamp

Member
Hi ,
My question is
What plceholders to use in the contectplugin for an element to identify the rowid?

In the list-intro for my actionlist I want to show the categorie the action is assigned. That is a databasejoin
I used the syntax as given in the content plugin
That works fine when I use a hardcoded rowid:
{fabrik view=element list=149 rowid=34 element=fluve_action___fk_categorie} shows the expected value "Teelttechnieken"
However I want to show the row identified by the unique key: fluve_action___id

According the documentation my idea is that this shoud work:
{fabrik view=element list=149 rowid=[fluve_action___id] element=fluve_action___fk_categorie}
Result is a blanc.
I also tried "rowid=[fluve_action___id_raw]"
What is the right syntax?
 
You really mean LIST intro? You can't use element placeholders there, from which row should the value of [table___element] be taken?
 
Last edited:
Hi Troester,
Hidden Feature discovered?
I was just playing around with the intro to pimp my categorielist and this looks much better then showing the categorie in every row.
This section of my site shows the backgrounds for what I do in my kitchengarden. If this works I will add this to my life website.
Screendump of my list intro with an other example then above:
upload_2022-1-10_10-55-6.png
From my menuitem I show the categories
upload_2022-1-10_11-8-26.png
And clicking on Details (standard Fabrik link) gives:

Shows
upload_2022-1-10_10-56-58.png
 

Attachments

  • upload_2022-1-10_10-45-7.png
    upload_2022-1-10_10-45-7.png
    33.4 KB · Views: 49
Not sure what you mean.
Yes, rowid=34 element=some_element
will show the value of the element of row 34,
but I understood you want the 34 to be "dynamic"

If you are coming via a related data "View" button you'll have the "related data dbjoin value" as a URL parameter, this can be used in the intro of the "child" list (but it will be only set IF you are coming via the button).
listid=your-dbjoin-list rowid=[your-element-in-URL] element=your-dbjoin-list-label

I was just playing around with the intro to pimp my categorielist and this looks much better then showing the categorie in every row
Do you know the list's "Group by" feature?
http://fabrikar.com/forums/index.php?wiki/list-edit/#group-by
 
Last edited:
Troester,
I am aware of the group by, but did not need it so far.
Group by is even a better solution as the tags element also comes to this list and artikel from different categorie could be listed due to the tags.
But ..
Now I see that the numeric value of my fk_categorie is shown and not the label I assigned in the database-join.
I tried
{fluve_flblog_artikel___fk_categorie_raw}
{fluve_flblog_artikel___fk_categorie}

Solved Acces setting was not set to public .

Regards
Klaas
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top