How can I list all pads in etherpad-lite
Asked Answered
R

4

6

I found this: https://github.com/ether/etherpad-lite/wiki/How-to-list-all-pads

But I really cannot figure how to use it. Do I have to modify my templates/index.html and add that piece of code? Where? Thank you!

Remington answered 17/8, 2012 at 6:51 Comment(0)
K
1

There are some plugins for that:

GitHub:

For me personally, small-list was the best choice as I had some problems with the others.

Kermitkermy answered 19/12, 2013 at 11:41 Comment(0)
H
0

I struggled to make it work too, so I contacted Rob - the guy who coded the script. He says that it might be obsolete for the latest version of etherpad-lite.

Hotheaded answered 26/10, 2012 at 12:13 Comment(0)
W
0

Login in etherpad admin, Then go the Plugin Manager and choose/search "list_pads" from Available Plugins And Press install button.

enter image description here Or Through Command line Command is "npm install ep_list_pads"

Wieche answered 11/7, 2017 at 11:41 Comment(0)
C
0

I've tested plugins but did not managed to get the full list of pads sorted by last modified date in one bunch.

The more efficient way I found until now is this SQL query:

SELECT DISTINCT 
    allpads.pad_id, 
    allpads.last_modified 
    FROM 
    (
        SELECT 
            SUBSTRING(store.key, 5, LOCATE(':', store.key, 5) - 5) AS pad_id, 
            FROM_UNIXTIME(SUBSTRING_INDEX(SUBSTRING_INDEX(store.value, '"timestamp":', -1), ',', 1)/1000) AS last_modified
        FROM
            store
        WHERE
            1
            AND store.key LIKE "pad:%"
            AND store.value LIKE '%"timestamp"%'
    ) as allpads
GROUP BY allpads.pad_id
ORDER BY allpads.last_modified DESC;
Cancan answered 28/10, 2024 at 9:40 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.