Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

CF7 - Table List view - View and edit buttons

mayergreenberg259 23 Nov, 2023
I am using cf7 to display a list selected from a database table with the 'table list' page block in the 'views' section.
In addition to the fields stored in the database, I would like each row to have clickable buttons (view and edit buttons) which link to another form that can edit a certain row in the database table. My problem is that I can only get actual columns in the tables to be displayed.
This button functionality was available in cf5. Is it also available in cf7?
If not, are there any alternative ways to accomplish this?

Thank you.
Pkoll 23 Nov, 2023
Define in the Table columns a Edit of Delete path and header filed
Update the area's and position in the filed a TextNode (see page blocks)
in the text node you can define link to other pages and update what you want

succes
Paul
mayergreenberg259 26 Nov, 2023
Thank you, that worked.

One more question:
How can I reference the data pulled from the database within the TextNode? I would like to be able to use the data for each row to use in the links.
Colnem 26 Nov, 2023
Hi
InTable List add a checkbox Element, for exemple named mycheckbox.
In Table List checkbox Element, modify the html name of the element, indexed with the user:id.
HTML TAG ATTRIBUTES: name="mycheckbox[{var:user.id}]" (override)

In your form, add a button to submit.
In your submit page, for each checkbox selected, you find this...
data: mychexkbox
user.id.1 = 1
user.id.2 = 1
...
Pkoll 26 Nov, 2023
Hello,
In the link in the textnode you Can add a link with an attribute like: rulle as name and value {var:Model1.id}
Where Model1 is de name of the table.
Succes
Paul1
You need to login to be able to post a reply.

© 2006 - 2024 ChronoEngine.com