Hot answers tagged

13 votes

Default Craft entry limit

Set the limit to null limit(null).
user avatar
  • 35.9k
8 votes

Can I add an enabled-by-default lightswitch field to existing entries?

If there was no default set beforehand, then your previous elements will have a value of null for that field. You should be able to include those in your "on" queries by querying for that null value ...
user avatar
  • 4,361
7 votes
Accepted

Can the Lightswitch field have a default 'on' setting?

For entries previously created, the lightswitch field will not be on even if you specified that as a field option. However, new entries should respect that field setting. Are new entries not honoring ...
user avatar
  • 1,623
4 votes
Accepted

Dropdown field 'default'

Yes, if you don't include the dropdown field in your entry form, Craft will store the default value for that field, if one has been set. If no default value has been set, then the value will be null.
user avatar
4 votes
Accepted

Default Craft entry limit

As of Craft 3, there is no limit by default. Per the CHANGELOG: Element queries are no longer limited to 100 results by default. (Credit to Ben Croker who originally added this answer as a comment ...
user avatar
  • 13.3k
2 votes
Accepted

Change admin CP default locale

You need to update the locale to en_ca in the control panel under Settings->Locales.
user avatar
  • 66.5k
2 votes
Accepted

How can I populate a dropdown via table field type using the default values?

You will only get the defaults for new entries.
user avatar
  • 35.9k
2 votes

Change/update the default user profile photo/thumbnail folder location

In Craft 3 the place that users photos get stored in are proper Asset Volumes, meaning they can be stored in a folder on the local file system, or on S3, Google Cloud, or any other place that a plugin ...
user avatar
  • 66.5k
2 votes
Accepted

Setting a default entry for the entry field

Entry fields do not natively support setting a default entry, but you can use the Globals section to achieve the same effect. Create a 'Default Call to Action Entry' field in your globals, and set ...
user avatar
  • 3,604
1 vote
Accepted

Using values from one entry as default values in another?

First of all I would like to leave a few links for you. Pluginfactory.io is a page where you can create your "starting" files. It creates an empty Plugin, with all the required files/functions with ...
user avatar
1 vote

Change/update the default user profile photo/thumbnail folder location

I am only able to speak about Craft 2x, as I am not familiar at all with how Craft 3 handles profile images. Here is where Craft 2x stores any uploaded profile image: /craft/storage/userphotos/ It ...
user avatar
  • 4,696
1 vote

Can the Lightswitch field have a default 'on' setting?

This is the mySQL query I have used to update a lightswitch field in the database. UPDATE `table` SET `field_name` = replace(field_name,'original content', 'updated content') for example: UPDATE `...
user avatar
  • 1,834
1 vote

Default Craft entry limit

There very definitely is a default limit of 100 and using .limit(null) will definitely override it. I know this because I recently had the same issue myself!
user avatar
  • 1,311

Only top scored, non community-wiki answers of a minimum length are eligible