New answers tagged

1

Here's the documentation you're looking for: Working with Dropdown Field Data You can get the label by adding .label, so you'll end up with {{object.exampleOne.label}} The dropdown field contains a few properties: label selected value (default) valid


1

I am also using MAMP on a Mac, and had similar issues first setting up. There are a few things to check. Under your host settings, use the traditional ports instead of MAMP's custom ports, and set your servers to run as your local Mac user. Then on the MySQL settings window, make sure to allow incoming connections, and check the box to include it in "...


0

As mentioned by Oli, I was able to use deleteElementById($entry->id). Note $id now refers to $elementId /* * Find the matching entries to delete */ $entry = (new \craft\db\Query()) ->select("elementId") ->from("content") ->where( "title = " . $title ) ->all(); /* * Delete the entry */ foreach( $entry as $key ...


1

We have isolated the issue to a crone job connected with the Remote Backup Plugin for Craft. Commenting out the following stops the daily backup. # /home/forge/www.example.com/craft remote-backup/volume/create # /home/forge/www.example.com/craft remote-backup/volume/prune I think there is an issue with trying to connect to the remote storage location.


0

This isn't really an answer, but my investigating was too long for a comment. Ultimately, craft.app.request.url gets routed through Yii's resolveRequestUri() and likely gets pulled from $_SERVER['REQUEST_URI']. Anything coming from $_SERVER['REQUEST_URI'] is always going to be URL encoded so using this in a template: I get this URL encoded output in a ...


2

This was an error in a module I have built for this site. Going through the docs and some tutorials again fixed it.


2

Sprig will use whatever your site's base URL is set to, to construct the action URL. Ensure in Settings → Sites that the base URL is either set to an absolute path starting with https://, or if an alias or environment variable, that it is defined as an absolute path starting with https://. Also be sure to either force the www subdomain or force a naked ...


1

Make sure that "run queue" is set in general.php also! <?php ... return [ ... '*' => [ 'runQueueAutomatically' => true, ] ]


Top 50 recent answers are included