processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Make setting() function handle string concatenation more nicely? #450

Open jlahijani opened 1 year ago

jlahijani commented 1 year ago

Right now, we can assign a setting variable (specifically a string) like so: setting('foo', 'bar');

Later in my code I may want to update foo to be bar baz. Right now I have to do this: setting('foo', setting('foo').' baz');

That's less than ideal. Would there be some way to make it nicer?

BernhardBaumrock commented 1 year ago

What is your exact use case? Maybe there are other options, like using WireData instead?