How to use HTML in a webform component’s title?

How to use HTML in a webform component’s title?

We have a checkbox which’s title should have HTML (<sup></sup>) but its rendered as text rather than HTML. How to use HTML in a webform component’s title? read more
How to use HTML in a webform component’s title?

How to reference external JS callback in custom module

So I apologize if I mess the terms here up, I’m relatively new to using jQuery in Drupal. I’m trying to implement a custom Google Map application with the V3 API. When I started mocking the module up I had no problem invoking the google maps function... read more
How to use HTML in a webform component’s title?

How to access a parent paragraph twig file from a child node twig file?

In my bootstrap theme, I am trying to make the id of the paragraph the same as an attribute for each of the child nodes, so an accordion will work properly. I have tried looking at doing it through hooks, but I can’t seem to access the paragraph data from my... read more
How to use HTML in a webform component’s title?

‘Add another’ fieldset on a multi-step webform

I have a multi-step webform using ajax (I’m using webform steps and webform ajax modules). The webform contains several pages (i.e education, career and experience). In education page i have the following fields: degree and major which are placed inside a... read more
How to use HTML in a webform component’s title?

Vague error message on config import: Config x depends on x that will not exist after import

I don’t understand what is missing. It’s just a simple blogpost content type that I created before I reset the db and tried to re-import it. All the modules requires are enabled and I did try to clear the cache. Run updb Tried drush cim –partial.... read more
How to use HTML in a webform component’s title?

Add image to RSS Feed

We are using the Feed Display for a view where we want to display all Articles in a rss.xml file. Below are the View settings. However, we cannot find a way to add an image attribute that meeting the RSS 2.0 specs. How can we add an image to the RSS feed display? View... read more
Permission for private file to anonymous

Permission for private file to anonymous

I have an ad content type, with a file field that is in a private directory when saving the node. Ads and their files are only accesible for authenticated users. I wish I could allow anonymous users to see ads and their files that are promoted. I use content_access... read more
How to use HTML in a webform component’s title?

Add custom ajax command to ajax response after webform is submitted

What I’m trying to do is to invoke some javascript after a webform is successfully submitted by ajax. To do that I followed this advice and created an EventSubscriber to intercept ajax response and add my custom command there. The problem is that on some reason... read more
How to use HTML in a webform component’s title?

Migrating files from local source are not found

I am migrating from Drupal 7 to Drupal 8 (8.6.9). Both the Drupal 7 and the Drupal 8 site currently run on my local machine. The migration of the public files goes well using: source: plugin: d7_file scheme: public constants: source_base_path:... read more
How to use HTML in a webform component’s title?

Advanced Migration – update nodes

I’m a little bit new in Drupal but experienced in PHP. I would like to migrate data from CSV and assign to existing nodes in DB. My question is about the possibility to match processing rows with existing data from the database. I mean, I have CSV file with data... read more
How to use HTML in a webform component’s title?

How to write SQL Statements With Spaces In Column Names

Hi I am trying to write a Dynamic Query to get data from the database but I am facing issues to write a query for column names with white spaces. My Product_Details Table looks as below: | S.No. | Product line | Product type | Product | Year | | ——... read more
How to use HTML in a webform component’s title?

How can I use a Twig if statement in a View rewrite

How can I add a Views field rewrite using Twig that will display the moderation state only if the node is in draft state or review state? I tried the code below but it prints all of the moderation states. {{ title_1 }} {% if field.moderation_state ==... read more
How to use HTML in a webform component’s title?

How do I programmatically set contextual filters?

I need to set a contextual filter programmatically and almost every view I have will have this filter. However, some wont and will have other contextual filters instead. I have tried following the examples in here but this will just set the first argument to be my... read more
How to use HTML in a webform component’s title?

Is it possible to add inline css styling to a twig email template?

Is it possible to add inline css styling to a twig email template? Not as a source file reference but by inclusion of css within the template similar to html <style>…</style>functionality. read more
How to use HTML in a webform component’s title?

Search API autocomplete group suggestions

I am using Search API, Search API autocomplete and Solr search. I’we made a view with an exposed filer that has a funcionality of search api autocomplete. For now, autocomplete suggestions are just this boring regular template… Important to notice is also... read more
How to use HTML in a webform component’s title?

hook_preprocess_field() $variables crashing while printing

I am trying to modify a file field value and add a download svg icon and then add it to a twig file by using a preprocess field. function my_preprocess_field(&$variables) { if ($variables[‘element’][‘#field_name’] ==... read more