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
34
results
Andrew Fletcher
•
The issue – I have a content type that includes an entity reference revisions field named field_introduction. This field points to a paragraph, which itself contains a text field also named field_introduction, of the type Text (formatted, long). How can I access the content stored in this paragraph's field_introduction field?
In Drupal, managing content structured through fields and entities allows for flexible and dynamic content architectures. One common scenario involves accessing data from a...
Andrew Fletcher
•
Recently I came across this piece of gold when dealing with databases,...
Andrew Fletcher
•
In Twig, the {% extends %} tag is used to inherit and extend the contents of...
Andrew Fletcher
•
These steps are for Drupal 8 and 9.
Export your database
Order here is...
Andrew Fletcher
•
In Drupal Twig templates, you can set a variable like paragraph_parent to the...
Andrew Fletcher
•
Update Drupal to 10.1.x and I'm receiving the following error
Twig\Error\SyntaxError: Unexpected "spaceless" tag (expecting closing tag for the "macro" tag defined near line 2). in Twig\Parser->subparse() (line 2 of themes/custom/{theme}/templates/misc/filesize-macro.html.twig).The error message clearly indicates that there's a problem in the Twig template file at line 2. Specifically, there is an "Unexpected 'spaceless' tag" and it's expecting a closing tag for the "macro" tag that was...
Andrew Fletcher
•
Twig error
Twig\Error\SyntaxError: Unknown "filter" tag. in...
Andrew Fletcher
•
This page will be a progressive outline of moving those regular run scripts that...
Andrew Fletcher
•
Goal: I want to download a table list to a txt or csv file.
Initially, as a root...
Andrew Fletcher
•
This guide has been compiled as a reference tool on how to access field values...
Andrew Fletcher
•
Setting up the admin password.
Process:
1. Edit jetty.xml
To begin you are going to edit the file “server/etc/jetty.xml”. However, if you aren't sure of the location of jetty.xml, run the command
find / -name jetty.xml -type fFor me, the output was
/opt/solr-8.11.1/server/etc/jetty.xmlEdit the file jetty.xml, by adding it before the Configure tag ends
<Callname="addBean">
<Arg>
<New class="org.eclipse.jetty.security.HashLoginService">
<Set...
Andrew Fletcher
•
In this article I'll walk through the steps I went through to install Solr on...
Andrew Fletcher
•
Looking to install Solr on your server? Not sure if it worth the...
Andrew Fletcher
•
It appears that the plugin or file path is not working how it used to be on...
Andrew Fletcher
•
This article references some of the common commands via CLI (command-line...