7 years ago
Topic

Hi

Do we have a convenient way to edit a content within a list ?

I mean we have a seblod  list of items (displaying for each item x fields) and we want to change the value of some fields without leaving the list page


This would require some ajax I guess or at least a modal form 


Any idea please ?


thanks


cyril
 

 

 



Get a VIP membership
7 years ago
2
Level 1

Maybe it could be some new ajax edit link plugin ? Instead of simply opening the form of the corresponding content type it would allow to edit only the field on which the plugin is applied.

any  thought ?

thanks

cyril

4229 Posts
Kadministrator
7 years ago
0
Level 2

Unfortunately I'm not aware of such solution, would be indeed handy. Perhaps send email to Octopoos if they have something unreleased available.

548 Posts
joomleb
7 years ago
0
Level 2

Hi Cyril, 

unfortunately I cannot help, but I'm sure the inline editing is the present, "a must". This is the Ark example, that sure you yet know, on how can be useful the feature

6 years ago
1
Level 1

Hi

Before getting the real thing (ajax editing) we could just add an icon aside each item of the list. The trick would be to use a FORM+ link plugin on this icon but with some modal attribute.

How can we set the form+ link plugin so that the form appears in a modal box please ?

thanks

cyril

1283 Posts
Bucklash
6 years ago
0
Level 2

Is that what resource as fragment is for?

Sounds like it could be, not tried as bit of a unknown for me

6 years ago
2
Level 1

Hi Klas

What do you think about this ? Do you know how to set up the FORM+ link plugin so that the form opens in a modal box please ?

thanks

cyril

6 years ago
0
Level 3

Hi Klas and thanks

but this I already knew. What I asked for was to know if you know the right parameters in the FORM +link plugin to put so that the form appears in a modal box ?

thanks

cyril

6 years ago
1
Level 1

Hi

HEre is what we achieved:

In the SEARCH tab

we add the JS code :

//JS script

jQuery( document ).ready(function()

{

jQuery('.ls-modal').on('click', function(e){ e.preventDefault();

jQuery('#myModal').modal('show').find('.modal-body').load(jQuery(this).attr('href')).addClass( "only-my-modal" );

});

}

);

In the list ITEM tab:

Create a field with a FORM+ link : We will call the modal window on this link

FOr example use a ICON field and set the FORM+ link with the Template -> component setting

In the template:

Create two HTML divs on which we will appy the JS script.

<div id="myModal"><div></div> </div>

4229 Posts
Kadministrator
6 years ago
0
Level 2

thnx

Get a VIP membership