Top new questions this week:
|
I want to attach a file to a mail from an input file in my form. Here is how I build the mail : $mailManager = \Drupal::service(‘plugin.manager.mail’); $params[‘title’] = ‘title test’; $params[‘…
|
I am trying to add Gift Cards to a Canadian site, and those cards are to be the only tax free item on the site – We’re online so the customer could be in any province. No matter what I try, I cannot …
|
I’m trying to structure the output of a view into specific HTML for a carousel/slider I’m generating, basically I’m trying to turn a regular list of X people into groups, which I’m then dividing …
|
Updating the emulsify_twig extension for D10, for some reason the class arguments aren’t being passed… I’m extending Drupal\Core\Template\TwigExtension and using the same default arguments but for …
|
Is there a way to add third party settings when defining a basefield for a custom Content Entity? I am creating a new Entity type and want to keep the fields defined in code vs config as much as I can….
|
I have a node edit form which I submit via ajax and then opens a modal doing this: $form[‘actions’][‘submit’] = array_merge($form[‘actions’][‘submit’], [ ‘#value’ => t(‘Get quote’), ‘#…
|
Greatest hits from previous weeks:
|
Do you have any idea on what might be causing this error when I execute: drush si geoslate –db-url=’mysql://root:root@localhost/geoslate’ –site-name=Geoslate Command site-install needs a higher …
|
I installed Drush 8 with composer. composer require drush/drush:~8 Unfortunately, error drush command not found after Drush completely installed. Why’s the drush command can’t be use? Installing …
|
I want to get current user object (user information) in Drupal 8. I know in Drupal 7 there was a global $user variable; I want to know how I can get current user object in Drupal 8.
|
I’d like to add additional fields to the user profile. I’d like user to be able to edit almost all the information I store in the database about him. I have some ideas: maybe it’s possible to do …
|
how to name your projects project_name-7.25-1.0-alpha project_name-7.25-1.0-beta1 project_name-7.25-1.0-dev2 project_name-7.25-1.0-rc3 project_name-7.25-1.0-stable4 project_name-7.25-1.0-unstable5 …
7 |
|
|
asked by Mau Score of 15 |
|
|
|
I have a Link field named field_my_link (machine name). Within a Twig template I can get the link’s URL value with this: {{ node.field_my_link.uri }} If inside the Link’s URL there is an external …
|
I created a view block, whose machine name is “news.” How do I display it using module_invoke() and the machine name of the view?
|