121 Posts
deralex
9 years ago
3
Topic

Hi,

I'd like to have some checkboxes for editing parameters right in list view. Just like "delete" or "edit". Is there a way to either build forms in every line of the template or to pass a parameter by url (option=cck&id=54&field=myfield&value=1...)?

Alex

Get a VIP membership
9 years ago
0
Level 1

Hello Alex,

not sure to follow you...


In a list like a "Manager", you can add a freetex "Edit" with a link "To form", so you will be able to edit each item.


But perhaps you want to speak about Ajax action ?

Regards.

Lionel

121 Posts
deralex
9 years ago
1
Level 1

Somehow I can't upload jpgs nore pngs to the forum... ("Illegal Extension")

Please have a look at this Joomla screenshot:

https://docs.joomla.org/images/6/60/Help30-Content-Article-Manager-screen.png

Just like the status buttons I'd like to have a button in a front-end list (!), to change the value of a form checkbox. Let's say there's a list of cars, I want to click on button in list view to change if the car is red or not, without using form view.

154 Posts
WebOne
9 years ago
0
Level 2

delarex:

Essentially you can setup a link that goes to the same page with a parameter. You then catch this parameter and do something with it (eg: change the car colour ). If you are not going to the form view then you most likely have to add some code to modify some value in the database.


So for example you can setup a link to the same content item with a custom variable:
value=$cck->getValue('demoformvalue')

Here is a link from the old forum - it's not perfect but gives you an idea of how these type of things can be achieved. This one uses a custom template - you probably can do it without a custom template however.

www.seblod.com/v2/forum/108-Tips-and-tricks/45290-How-to-manage-articles-edit-print-delete-publish-in-a-custom-list-or-table.html

You may be able for example to use the CODE PACK and catch the value and do something with it.

www.seblod.com/products/1854

And as Lionel mentioned it is possible to use AJAX which will do this without a page reload etc. You will need to do extra coding in that case, but a there is an ajax plugin for Joomla that may be useful :

extensions.joomla.org/extension/add-fullajax

Note: I do not know if this extension is suitable - I give it just for information.

Get a VIP membership