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
159
results
Andrew Fletcher
•
Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set? I have and realised that jquery-ui-slider-pips package had been removed. So I added it back, and ran the command composer update.
composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires bower-asset/jquery-ui-slider-pips, it...
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
•
When you have an entity ID value such as node ID (nid) or taxonomy term ID, how...
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 server. In this instance I'll be adding Solr config to a AWS EC2 server.
Log in to your remote server, then as you need to work as root type:
sudo suGo to your solr directory:
cd /var/solr/If you don't know the location of your solr directory run:
find / -name solr -type dYou can find more information about how to search on Terminal Commands Find.
Access your solr config directory through:
cd...
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr...
Andrew Fletcher
•
Working on an Azure server I ran a mysqldump command to generate a copy of the...
Andrew Fletcher
•
When attempting to backup mysql using the mysqldump command
mysqldump -u root...
Andrew Fletcher
•
How to Create New MySQL User
Before you can create a new MySQL user, you need to...
Andrew Fletcher
•
You can create a new date/time format by navigating to:
Admin -> Configuration -> Regional and Language -> Date and Time format and click on 'Add Format'.
Once you’ve created date format, you can control the way date is displayed on the node using preprocess function.
In {theme_name}.theme file, add the following lines
/**
* Implements hook_preprocess_node
*/
function THEME_NAME_preprocess_node(&$variables) {
// Getting the node creation time stamp from the node object.
$date...
Andrew Fletcher
•
To assist in finding possible solutions some of the queries that I made...
Andrew Fletcher
•
Creating a message log using Drupal watchdog.
Simple log
// Logs a...
Andrew Fletcher
•
The generally accepted answer to a mysqldump is:
mysqldump -h [host] -u...
Andrew Fletcher
•
Working in Twig, I had to add classes to a pre-existing array. Whilst I've...