developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
162
results
Andrew Fletcher
•
What am I setting out to achieve?
I want to meet the following requirements:
Boolean operators in the search. Tested against the following terms
abalone NOT salmon – 1159
abalone -salmon – 1159
abalone AND salmon – 478
abalone +salmon – 1195
abalone OR salmon – 2316
abalone || salmon – 2316
Phrases in quotations marks - this time to be tested against
"of this stimulates an interest in the sea and a love for the marine environment" – 1
of this stimulates an interest in the sea and a...
Andrew Fletcher
•
Having access to a site’s URL in your templates can come in handy for many...
Andrew Fletcher
•
Having Drupal Solr Search APi running, I thought adding synonyms to the mix...
Andrew Fletcher
•
I want to create a content type that has a paragraph. Easy enough.
What...
Andrew Fletcher
•
Creating URL's in Drupal programmatically:
Internal path
use...
Andrew Fletcher
•
Working in Drupal 9.x, I was loading images via the Media module. Below 1 mb no issue. Any thing over - nothing. Nothing as in no response when loading.
An interesting situation, as I had already changed the php.ini file where the following updates occured:
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 2MHad changed to
upload_max_filesize = 10MAlso the post max size
; is disabled through...
Andrew Fletcher
•
Have you tried to run a composer update script that...
Andrew Fletcher
•
Since upgrading to Drupal 9.3.0 have you come across this error?
Edit...
Andrew Fletcher
•
Have you noticed through your Google account that there are items being indexed...
Andrew Fletcher
•
Like many devs at the moment, looking for log4j2 on your server... how to...
Andrew Fletcher
•
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how can you create the alias in a twig file? In other words, instead of /taxonomy/term/{tid} I would like to get the alias I have defined for this, eg: /some/path/to/my/term.
In trying to find an answer you might have queried your search criteria using something like
twig canonical taxonomy path
twig canonical entity path
twig canonical node path
How to achieve
This is achieved through using the...
Andrew Fletcher
•
In drupal 9 for logging you can use logger service to log array data...
Andrew Fletcher
•
Adding Solr config zip (ie. solr_8.x_config.zip) to your remote...
Andrew Fletcher
•
Steps to get the Solr date range widget working.
Steps
Enable the Facets...
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr...