otetard / ownpad

Ownpad is a Nextcloud application that allows to create and open Etherpad and Ethercalc documents.
GNU Affero General Public License v3.0
58 stars 25 forks source link

Allow use of non-random pad names #95

Open digital-codes opened 4 years ago

digital-codes commented 4 years ago

We would like to use pads with specific names, like codeforka-2020-03-29 For the moment I accomplish this by overweriting the random token with the name of the pad in lib/OwnpadService.php like so: $padID = explode(".pad",$padname)[0];

It would be nice to have this as a configurable option from the ownpad server settings. This also relates to issues https://github.com/otetard/ownpad/issues/78 (configuablesuffix) and https://github.com/otetard/ownpad/issues/7 (existing pads). I tried this for opening existing pads and it works OK. I would be willing to help on the settings GUI once I know where to look for the files.

fwolfst commented 4 years ago

Small correction: its apps/ownpad/lib/Service/OwnpadService.php (line 43).