Halo-Lab / sanity-qr-code-generator-plugin

1 stars 1 forks source link

generate based of document property #1

Open isakgustavsen opened 6 months ago

isakgustavsen commented 6 months ago

Hello

Have you look into adding the possibility of generating the QR based of a document property? The idea would be for there to be some preset string with the document title, slug or id to be added when the document is generated/updated. Maybe through inital value?

Not a react dev, so not sure how hard this would be

Kapelianovych commented 4 months ago

Hello. Thank you for the issue and sorry for the long wait. If I understood correctly, there should be a way to provide a value for the encoding automatically, instead of relying on the explicit input element?

Kapelianovych commented 3 months ago

We just released the 1.1.0 version of the plugin, where you can define which document value the QR code generator should depend on, and it will be generated automatically. Check out the documentation; it is pretty straightforward to achieve this. If you have any problems, please feel free to reach out to us. We will try to be more responsive in the future.