Hello !
I will try to explain as clearly as possible my problem. I want to import a csv file into my Drupal site. I use for this the modules migrate source csv, migrate tools and migrate plus. I also have my module with the following yml files:
I am trying to add a class name to a template field. The new class name will be constructed from the content name + other text.
Trying to get the content name from element['#object']['values']['info']['x-default']. Always comes up NULL. Using {{kint()}} to display the values on the screen.
I do not know how to access protected fields with twig, and my searches on drupal.org and google.com are not finding anything.
Hi
I can make multistep form in drupal 7
But failed to make it in drupal 8. I tried a lot since a month, but failed. I saw example module, but failed.
I want there will be three form
First form has one field with textbox with numeric value option
Second form have have drop down with option sum,multi,subtract
Third form have textbox with numeric value option
Now I want that when user submit, it will calculate two number based on second form option choice and show the result as html.
I wonder what kind of configuration is most suitable for following case. I want to set a time dependent on website level configuration where for example during Aug 2017 users will receive 100 points for each referred user, in Sep 2017 120 point and from Oct 2017 150 points. I don't want to override at beginning of each month but to define all the setup in advance.
Is it possible to use simple Drupal 8 configuration? Should I use configuration entity? Or maybe it should be managed as content type with "from date", "to date", "points" fields?
I understand that for increased SEO, internal links are very helpful. I am wondering if links within the Main Navigation section count as internal links. Or, should internal links be included elsewhere; like within content body?
I'm creating a simple, one table in a database, custom search module. Everything works as it should, all my fields map correctly and I was even able to use hook_views_query_alter() to make sure that date searches returned proper results... Today I noticed that if someone hits the search button without any input, every possible result pops up. How do I make an empty exposed filter return the same as my no results setting?