Questions tagged [settings]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
2answers
960 views

How do I save a Plugin's date settings-field?

I've got a plugin with some custom settings, like this: protected function defineSettings() { return array( 'serviceendpoint' => array(AttributeType::String, 'required'=>...
1
vote
1answer
107 views

Plugin settings per site/locale

I'm trying to make a plugin in Craft 3 but want it to be possible to set different settings for each separate site or locale. How would I go about doing this?
1
vote
1answer
287 views

postCpLoginRedirect wrong redirect when used with autoLoginAfterAccountActivation

See below updates and accepted answer for a full solution I finally discovered postCpLoginRedirect which solves my needs, even though I only need users to access their profile (which includes lots of ...
1
vote
1answer
262 views

Custom validation for plugin settings

As a follow-up to this thread, I would like to know how to create custom validation rules for plugin settings, or at least how to return field errors to the plugin settings view. I currently have: &...