Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [settings]

The tag has no usage guidance.

1
vote
1answer
24 views

Craft 2: get default user group from user settings

In Craft 2, I know I can get general config settings. How can I get the current Default User Group (set in Settings > User Settings) for use in my templates?
1
vote
1answer
21 views

My plugin settings page is never loaded

I have been staring at this all morning, comparing to other plugins online and cannot see why my plugin settings page never registers. I have verified the actual settings model is populated, but ...
1
vote
0answers
29 views

Add a second template field in section settings via plugin

I would like to add a second default template field for each section's Site Settings, via plugin. Where would I look to see how to do this? How would I access this value in my plugin's code? How ...
1
vote
0answers
33 views

Craft 2: New locale introduction not affecting old entries

I just introduced a new (2nd) locale to my site. It now seems I can easily set up translated versions for "single" and "channel" pages that I set up new. The old entries, which existed prior to ...
1
vote
2answers
126 views

Trouble accessing setting

My plugin structure was created by the plugin factory. I have a setting called ulStateClass and I have been able to change the value of that setting in the Setting for the plug in. Looking at the 3.0 ...
1
vote
1answer
103 views

Error updating programmatically a plugin's setting

I want to update programatically a plugin's setting: public function init() { craft()->on('commerce_orders.onBeforeOrderComplete', function($event){ // Set InvoiceNumber $...
2
votes
1answer
466 views

Set tabs in settings on Plugin

I would like to add tabs in setting page in my plugin. I have the following code in /[myplugin]/templates/_setting.html. However, the tabs do not show up, does anyone have any sample code to set up ...
1
vote
1answer
81 views

Only see 3 textarea field on Plugin Setting Page

I am developing the plugin to send user difference confirmation email which more than 20. I put those fields in templates/settings.html so that the admin could change and update the message content. ...
1
vote
1answer
89 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?
4
votes
2answers
367 views

Can I set an environment var for SMTP mail servers?

Pretty straight forward here, I'd like to use MailTrap for devMode and then use an SMTP service (Mandrill or like) for production. I looked through the General Config Settings docs but didn't see ...
1
vote
0answers
22 views

Version 3 Beta Login Logo Not Resizing [closed]

The login page logo does not resize on Craft V3 Beta, but the site icon does, using the identical image. The images are resized to 500 x 500 when uploaded to the cp settings page, but the logo width ...
1
vote
1answer
39 views

“Email” Control Panel Settings page is blank

I'm currently unable to access my 'Email' control panel settings page. When the page loads it's completely blank, and the body of the response is simply the scripts that log the Application Log and ...
1
vote
0answers
328 views

Retrieving custom settings in Craft 3 plugin [closed]

I'm trying to retrieve the settings that a user sets in a Craft 3 plugin. The method I used in Craft 2 plugins doesn't seem to work anymore. To demonstrate the problem, I'd made a plugin and uploaded ...
1
vote
1answer
36 views

How to make a code/settings for accessing the one database from 2 different html files with {slug}

I create a code for TV show database, but I have a big problem. Please see the image I want to access one entry(post) with some data from some templates. But I don't know how to create any code or ...
2
votes
1answer
404 views

Plugin Settings UI for saving an array of values

I'm making a plugin where I'd like a user to be able to add values to a list, then have that list saved as an array. Are there any smart ways of doing this? My current solution is to have a textarea, ...
0
votes
1answer
153 views

Redactor settings: stripping out classes from table

I have a site (Craft 2.5.2754) and am trying to add a class to a table within Redactor. Even if I disable Clean up HTML and Purify HTML (which would rather not do) the style is getting stripped out on ...
1
vote
1answer
64 views

Plugin settings are rendered wrong

I'm trying to create a craft plugin but I have problems with rendering the settings. Right now I used the same way like here so this is my plugin code <?php namespace Craft; class testPlugin ...
1
vote
1answer
270 views

How to save widget settings

How do you save Widget Settings? I read this tutorial https://craftcms.com/docs/plugins/widgets several times but I could not find an answer. I'm new to Craft and this is my first plugin. If I want ...
3
votes
2answers
320 views

Can I disable languages from the General Config Settings?

I started to develop my new Craft site in two languages (French & German). Once done here, I have to put the website online temporarily in one of these two languages (French). So I turned off all ...
5
votes
1answer
396 views

Commerce & PayPal - What does “Solution Type” mean?

Our site is using the Craft Commerce plugin, and within that we've enabled the PayPal Express gateway. However, there is a very cryptic dropdown menu on the gateway settings page... So my question is,...
2
votes
2answers
548 views

Plugin settings - file field upload location

My plugin needs to allow admin to upload an image. I have the field setup and saving ok. But i cant seem to control the upload location. This is what i have so far in my settings: {{ forms.file({ ...
2
votes
1answer
124 views

Odd error message when editing field settings (Variable “targetLocaleFieldHtml” does not exist)

After upgrading a site from 2.4.x to 2.6.x, I'm experiencing an odd issue where Craft throws the following template error whenever I attempt to edit a field: Variable "targetLocaleFieldHtml" does not ...
3
votes
1answer
225 views

Settings in Admin Panel Blank

Have kind of a weird problem going on with my site, which I just moved over from my staging server to production. Originally, everything looked fine, except I couldn't get into the Admin Panel. I ...
0
votes
1answer
49 views

Why are the email settings fields not showing, and how do I fix this?

I'm trying to set up SMTP in Craft backend Settings > Email to get Mandrill working. But regardless of which protocol I choose, no settings fields are shown, and when I click save it just says "Couldn’...
1
vote
1answer
302 views

Change system settings email address

Is there a way to change the email address stored in the craft_systemsettings table? I guess this was originally setup when installing Craft but now I need to change it. I've changed the email ...
1
vote
1answer
368 views

Bilingual site page URL issues

I'm trying to setup a bilingual site and I'm having some issues with setting up the URI. 'siteUrl' => array( 'en' => 'http://localhost/mysite', 'fr' => 'http://localhost/mysite/fr',...
1
vote
1answer
105 views

Craft Cache Config - Remote Support?

Is there a way to configure Craft further beyond just settings like 'cacheMethod' => 'redis',? I'm exploring the possibility of using Redis outside of the server Craft CMS is running on, and am ...
1
vote
1answer
266 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 ...
3
votes
1answer
483 views

What does the Timezone in Settings -> General represent?

Should it be set to the timezone of the server Craft is installed on, or the timezone of the current user, or something else? I can find no documentation about these settings anywhere.
3
votes
2answers
1k views

How do i get variables from general.php

Within the config folder there is a general.php file with various vars which are site specific. how do i get at these from within a plugin? Thanks for your help.
2
votes
3answers
1k views

How do I reference the settings of my plugin from a template?

This question and answer explains how to access a plugin's settings from elsewhere in the plugin's PHP code. How would I access these settings from within a template? Or this impossible and I'd have ...
1
vote
1answer
213 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: &...
2
votes
1answer
908 views

Help Understanding Craft Email Settings

I have a client who uses Office 365 for email. Using the basic phpMail config in Craft fails when I try to direct an email to any of the clients email addresses, including user registration and, more ...
0
votes
1answer
197 views

Problems Displaying Label and Instructions in Forms

I am trying to learn how to create plugins using craft and am having a small problem. On the templates/settings.html page I have the following code: {% import "_includes/forms" as forms %} {{ forms....
0
votes
1answer
89 views

How to conditionally hide particular plugin settings?

This answer has given me most of what I need, but I'd like to hide certain settings based on the status of other settings. CP seems to have nice functionality built in for conditionally hiding/showing ...
5
votes
1answer
334 views

System Status flag in template context

does anyone know if there is a flag, accessible at template level, that indicates whether the "System Status" lightswitch in Settings -> General menu is on or off? (I'm thinking something similar to ...
2
votes
1answer
710 views

Plugin Settings: Attribute Types, and how to receive

I have two small arrays I want to store in my plugin settings, though I'm stuck at what the AttributeType:: should be, as well as how to retrieve the actual values. The arrays I want to store look ...
6
votes
2answers
843 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'=>...
2
votes
1answer
158 views

Plugin-settings form field for chosing a user?

I'd like to be able to select a user for a settings field for my plugin. Is there a settings AttributeType that matches users? And a corresponding forms template for picking a user? (also ...