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
171
results
Andrew Fletcher
•
Currently, we are upgrading a site from Drupal 7 to Drupal 9. During this upgrade, we have the opportunity to the site's search functionality and select a tool that is most suited to the website's requirements.
Searching on a website is integral to a site's functionality. Looking at Solr and Elasticsearch as the primary search engines. They're two of the most popular open-source search engines. To begin both of them are built on top of Apache Lucene, so the features they...
Andrew Fletcher
•
Import a database
lando db-import doj.sqlEnter the MySQL database
lando mysql...
Andrew Fletcher
•
This article works through the steps to update dependencies in the...
Andrew Fletcher
•
Finding the issue with a server 500 error
The Nginx error logs are showing too...
Andrew Fletcher
•
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini). When I run the...
Andrew Fletcher
•
Listen in on the ports being used on your server. To do so, run the command
netstat -a | grep tcpIf netstat is not install, then you'll be prompted to run the install script
sudo apt install net-toolsResponse
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 196 kB of archives.
After this operation, 864 kB of...
Andrew Fletcher
•
Error with Nginx
When running an Nginx test, the following response was being...
Andrew Fletcher
•
Explain public, private, protected functions and variables inside a class in...
Andrew Fletcher
•
Assuming there is a new field requiring a change on a content type. How do you...
Andrew Fletcher
•
Replicate
Replicate the bug in your local environment.
Check
Check - do you have...
Andrew Fletcher
•
2 or 3 approaches to build a homepage or landing page through Drupal
Please include any limitations & considerations of each approach
Building a homepage a few options to consider and should against a business case:
1. Article
An article – create a new node (assuming a least one content type exists), then using Basic Site Settings (admin > config > system), scroll down to Front Page and enter the node.nid value or alias.
Pros:
Fast to apply
Cons:
Limited to only having one...
Andrew Fletcher
•
Drupal cache is one of the major subsystems that deliver Drupal's flexibility...
Andrew Fletcher
•
My goal was to get the base URL and compare it with the URL of the link....
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes:...
Andrew Fletcher
•
Whilst I had regularly used HAL to upload files through REST API, this is no...