(Pdb) from plone.app.uuid.utils import uuidToObject(Pdb) uuidToObject(’40asdasde33′)<Product at /Plone/en/blabla/something>
Tag: docs
JavaScript to TypeScript
Problem: You need to convert a big JavaScript project to TypeScript. Solution: ts-migrate
Local test empty plone backend
Just some notes:
cors-test.codehappy.dev
Salvez asta aici: https://cors-test.codehappy.dev
Plone 6, Volto: find items containing a block
In my case I searched for items that contains any kind of “form” block: Register a view (MyView): configure.zcml admin.py Then go to localhost:8080/Plone/my-view
rsync rancher config
Go to rancher stack Add service eeacms/rsync (same settings as for other projects) Volumes – use the volume listed in storages: my_website_data:/data then $ ssh root@vv.vvv.vv.vv -p 22222 yes $ cd /data/
Disable LDAP (Plone 6)
Site Setup -> Management Interface (ZMI) -> acl_users -> pasldap -> Activate -> uncheck all -> Update
pdb – kill the current process
ctrl+\ kills the current process
Sitemap Plone 6
yourwebsite/sitemap.xml.gz
Convert and resize png files – Ubuntu
Convert all jpegs to png: $ mogrify -format png *.jpeg Resize width 300 px for all pngs in this folder: $ mogrify -resize 300x *.png