V
V
Vadim Timoshenko2015-02-18 20:27:12
Drupal
Vadim Timoshenko, 2015-02-18 20:27:12

How can I implement the "archive" button in drupal?

All materials are displayed using views in the table.
The table shows some fields, along with "delete" or "modify" buttons.
There you also need to "stick" the button "into the archive". A node with this parameter will appear in a different view.
It would be great if it disappeared from the list on ajax))
What modules can implement this task? Or no module?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
andead, 2015-02-19
@PbI6A_KuT

https://www.drupal.org/project/flag
To disappear - you have to add a few lines of js

V
Vadim Timoshenko, 2015-02-19
@PbI6A_KuT

Indeed, everything was decided with the help of the flag module .
And to hide lines with an already "pressed" button, I used the Views Flag Refresh module . This article
also helped .

T
TCloud, 2017-10-28
@OTCloud

Here you will have to loop through the entire DOM anyway, look for the div and compare its coordinates + size with the expected intersected span.
And answering your question: Yes, this can be implemented.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question