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
36
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
•
In Twig, the {% extends %} tag is used to inherit and extend the contents of...
Andrew Fletcher
•
As you're using Bootstrap 5 and applying a style for the hover state of an...
Andrew Fletcher
•
In Drupal Twig templates, you can set a variable like paragraph_parent to the...
Andrew Fletcher
•
If the Android app icon is not changing from the default icon (in my situation...
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
•
Using CK Editor 5, I needed to add instructions to a page that held FontAwesome...
Andrew Fletcher
•
This guide has been compiled as a reference tool on how to access field values...
Andrew Fletcher
•
Android Studio error
Installation did not succeed.
The application could not be...
Andrew Fletcher
•
Android Studio error
error: package android.support.v4.content does not existThis is a problem with plugins using old Android support dependencies instead of the AndroidX equivalent. As it's a dependency issue, to resolve add jetifier. I know yet another package...
npm install jetifier
npx jetify
npx cap sync
Tools
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.0
...
Andrew Fletcher
•
Android Studio build errors
Build failed error: cannot find symbol if...
Andrew Fletcher
•
Initialise your Capacitor config
To initialise Capacitor use the CLI...
Andrew Fletcher
•
Run the NPX commands to update the app
npm run build && npx cap syncRun...
Andrew Fletcher
•
ERROR Error: Uncaught (in promise): TypeError: undefined is not an object...