All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
2k views

Insert values into a node fields with entity wrapper

I've tried to use entity wrapper to create a new node and insert the values into the fields, but I get an error. <?php $values_entity = array( 'type' => 'anuncio', 'uid' => $userid, ...
1
vote
1answer
21 views

twig template suggestion for comment reply form

there is no template suggestion for a comment reply form in Drupal 8, how can i create one? i am not talking about the reply form displayed in the node for which Drupal suggest a template : field--...
1
vote
1answer
23 views

Change sort order of SOURCE STRING list at User interface translation page to alphabetical instead of date created

At the User interface translation page (/admin/config/regional/translate) the SOURCE STRING list seems to be ordered by creation date/time (it is for strings I add). Is there a "good" (non-hackish) ...
3
votes
2answers
729 views

Where is the Migrate UI page?

In Drupal 8.2.x there is the new migration UI tool. I've enabled it, but I can't find any link going to any UI page. Back in Drupal 7 when you enabled a module, it would have a configure link next to ...
1
vote
1answer
19 views

separate the page title from page content

I am using {{ page.content }} to print all my page content. It is printing my all content but I want to remove title from this content and print it separately in different div structure (without using ...
4
votes
5answers
2k views

When I upload an image in drupal 8 the imagestyles are not shown for the first time

My settings are, allow_insecure_derivatives: true suppress_itok_output: false Editing the itok token for the image src works at the browser level. Does anyone know what causes the issue and a fix ...
2
votes
2answers
2k views

Acquia Dev Desktop MySQL database troubleshooting on Mac OSX 10.11 [closed]

I changed the Acquia Dev Desktop configuration, then when Apache web server and MySQL were restarting MySQL never got back online. I have enabled the debug option in Acquia Dev Desktop. The logs don'...
3
votes
1answer
540 views

When reimplementing Drupal.tableDrag.prototype.dropRow(), how do I access classes of would-be parent?

Using code below, I can access classes of a row that's being dropped: Drupal.tableDrag.prototype._dropRow = Drupal.tableDrag.prototype.dropRow; Drupal.tableDrag.prototype.dropRow = function(event, ...
0
votes
1answer
618 views

Manual crop not working in Chrome

Is anyone using manualcrop https://drupal.org/project/manualcrop? It works fine in Firefox but doesn't work in Chrome. Using Drupal 7. Thanks!
1
vote
1answer
259 views

Migrate user passwords from drupal 6 to already existing drupal 8 site

I have a drupal 6 site and a drupal 8 site. The drupal 8 site already exists and I do not want to do this on an empty drupal 8 install. Also I only want to migrate passwords. The users with their ...
0
votes
1answer
1k views

How do I print the node title and body?

This is the code which I have put in node.html.twig. It doesn't print the body and title of the node, whose bundle is Basic page. How do I print node title and body of a node? {% set classes = [ '...
0
votes
2answers
572 views

Adding workflow to custom content types

I am trying to assign a workflow to my custom content type, but i can't find the option to get this working. Is it a bug or maybe just not part of the workflow module?
-3
votes
0answers
35 views

Metatag Module is not working [closed]

I have installed metatag module in my drupal 8. I have added respective field 'metatag' for content types as well. I am able to add the meta tag fields but they are not showing on front end when I do ...
1
vote
1answer
475 views

Passing values to a view block

I have a page that contains 4 separate blocks, from the same view, Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 ...
0
votes
1answer
59 views

Specifying display of a new Paragraph type with images using HTML/twig?

I created "figure" Paragraphs type, which contains an image field and a caption field. How (from start to finish) do I specify in HTML/twig how to render this new Paragraphs type? As an example, how ...
1
vote
1answer
710 views

How to delete a scheduled task using Rules Scheduler?

I use the rules scheduler module (D7). So far all fine. What I use it for: a user registers with username and email this users then gets 4 emails over the next four weeks, sent by the scheduler BUT:...
0
votes
0answers
40 views

How can I programmatically create parent child taxonomy terms? [closed]

In Drupal 8, I have created two taxonomies programmatically. I want to use these taxonomies as Parent-Child relationship. One taxonomy is 'Country' and second is 'City'. I want that if user select USA ...
0
votes
3answers
18 views

Creating a view which lists all taxnomy terms and the number they appear in a content type?

So i have a taxonomy called Product Warnings, and it has around 10 terms. This taxonomy is referenced in several content types (Small products, Large products, etc), and can be selected multiple times ...
2
votes
1answer
539 views

Is it possible to get Entity Connect and Entity Reference View Widget to work together and if so how?

It seems to me this should be a fairly common problem, but I can't seem to find and answer despite looking! Here is my use case: I have two types of content: Activity and Participants. When I create ...
1
vote
1answer
18 views

Having required (*) show up on the component itself and not the label

I'm creating a webform select options component and I want to hide the label. Because this is a required, it needs to display with the red asterisk that the field is required. However, the asterisk ...
1
vote
1answer
22 views

Views Grouping field position

I have a view and i use a date field for grouping. The position of the grouping field is at the top of the view row. Is it possible to position the grouping field at the bottom of the view row?
1
vote
1answer
480 views

query to retrieve all translations and nodes of a language that has been removed from the system?

I am experiencing an issue after a language has been removed from the system. Every time I go on the admin/content page on a drupal 8 site I get: Error: Call to a member function getId() on null ...
-2
votes
1answer
17 views

What is correct way to make custom slider module? slide update problems

I have a custom slider module but the problem is if I make a new slide, it won't appear before drupal cache is cleared. So how can I renew my slides in the module so cache clear isn't needed. My Code:...
0
votes
1answer
82 views

Template preview not working properly

I've got a huge problem with my template preview. For all of my post (page, article and so on), I have not the good region in my page. My theme is extended Classy. If I go to see the page (not ...
0
votes
4answers
882 views

Translate homepage meta Title and description

I have a Multilingual Drupal 7 site using i18. But how do I get my homepage meta Title and description translated?
0
votes
2answers
547 views

How to link taxonomy term with current loaded NID?

I want to link taxonomy term with current loaded node I am using $nid = arg(1); $term=taxonomy_term_load($tid) print $term; but noting happened. Please tell what is the correct way
0
votes
1answer
612 views

Show image on solr search result page

I want to show image in my solr search result page. For that, I have created one field in my content type called media. In db, Images are saving in field_data_field_media table in the form of ...
1
vote
0answers
31 views

Do multiple normalizing modules conflict with each other?

Drupal Core serialization service is selecting normalizers from container by looking at "normalizer" tags and their priorities. But we have multiple modules using serialization, providing their own ...
1
vote
1answer
804 views

How can I make a template for a product type in Commerce?

I want to be able to write my own markup for the fields (see image below) of each product type – how do I do this? My main reason for this is that I want to group them with my own HTML rather than the ...
0
votes
1answer
1k views

How can I access/arrange elements in the {{ content }}?

I am relatively new to Drupal and have just successfully pulled out a field value and used it to display a custom icon on the page. Coming from a HTML/CSS only kind of world, I am finding it hard ...
2
votes
1answer
1k views

Installation keeps complaining that Unicode library (mbstring) should be disabled, even though it seems it already is

I'm trying to install Drupal 8.1.3. (Apache 2.4.7, PHP 5.5.37, Windows 7) In the "Verify Requirements" step Drupal keeps complaining Unicode library -- Error -- Multibyte string input conversion ...
0
votes
1answer
331 views

Drush alias files aren't being found [closed]

I'm working locally on my OSX and I have my drush alias files at ~/.drush/[hostname].aliases.drushrpc.php but no matter what project I'm in, only one of the alias files are being read, as confirmed ...
1
vote
1answer
550 views

How can I conditionally reference an entity?

I would like to have an inline entity reference form that will optionally provide a write-in text form if the entity doesn't already exist. Here's the use case: I want to reference a faculty profile ...
0
votes
1answer
299 views

Multisite and apple touch icons

In a typical multisite D7 installation, I would like to set up apple touch icons. So that, when an agent requests http://example-1.com/apple-touch-icon.png then he receives the image appropriate for ...
0
votes
0answers
24 views

What are the necessary fields to provide in a CSV so that the orders are created properly?

In the context of Drupal 8 and Commerce 2, I need to create about 1000 orders on behalf of my users. What are the necessary fields to provide in a CSV so that the orders are created properly? The ...
7
votes
6answers
15k views

How to print paragraphs in twig template?

I have a content type, basic, where i have added a Paragraph field field_pr that has two fields: field_text, field_color. I have a twig template node--basic--full.html.twig where I want to print the ...
1
vote
1answer
622 views

How to add custom input type button in forms?

I want to add custom input type button in form. I tried following code, but it is converting it to submit type button. How can i add input type button ? $form[custom_button] = array('#type' => '...
0
votes
2answers
772 views

How to do something BEFORE a view is updated via ajax submit button?

I have a view with exposed filters and Ajax activated. I would like to validate my exposed filters values before my view is updated by the submit button. The following code works without Ajax, but ...
0
votes
2answers
1k views

Redirect Using Rules Based on Account Role

Further to this previous question, https://drupal.stackexchange.com/questions/1790/redirect-users-after-login-depending-on-the-users-roles I am trying to accomplish a similar redirect on a D7 whereby ...
1
vote
1answer
1k views

Programmatically get menu links filtered by language

In Drupal 8, I'm trying to get my menu which has translated menu item filtered by a given language. So far, I was able to get my menu tree : $menu_parameters = $this->menuLinkTree->...
0
votes
2answers
775 views

How can I rewrite the output of image field to become a div with this image as a background image?

I have a view to display a content that have an image field, and I need to display this image as a background image of a div so I can apply some CSS on it. what I tried to do is to rewrite the output ...
24
votes
6answers
34k views

How to redirect to a page after submitting a form

I have a custom module that displays a form. Upon submitting the form, I want to redirect the user to a different page. How can I do that?
3
votes
2answers
10k views

Override form element twig template

I want to override the twig template for specific fields on a form which I created via the Contact module in Drupal 8. However, I can't find any documentation, and the suggestions in the HTML ...
6
votes
2answers
4k views

Attempt to create a field body that does not exist on entity type node

I am getting the following error: Drupal\Core\Field\FieldException: Attempt to create a field body that does not exist on entity type node. in Drupal\field\Entity\FieldConfig->...
2
votes
1answer
489 views

Feeds GUID - issue while modifying and importing the manually content type data

I have a scenario like this: I am using Feeds Importer to import one content type data. I am using GUID field as the unique field. Also, I am exporting these all the nodes of this content type using ...
0
votes
2answers
1k views

Webform textarea character counter

I want to add a character counter on a textarea field on Webform. I tried the Maxlength module but it doesn't work (I can't find any reference to it on editing the field) and I read it works only for ...
1
vote
1answer
64 views

Understanding the Basic Context of Trusted Hosts [duplicate]

I got the trusted host settings error. The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure ...
0
votes
0answers
14 views

The provided host name is not valid for this server on OVH Web Server [duplicate]

I'm using an OVH web server, I went to the ftp browser and did add all my files into www. I was using Drupal 8 in local. When I want to go to my website, I've this error: The provided host name ...
0
votes
1answer
547 views

How to create a 3rd Ad push in a custom Omega Kickstart subtheme

I'm using drupal commerce kickstart 7x to design an experimental website to understand the layout & methods of the CMS. I've just started using Drupal. To be precise, 3 days. This is very new to ...
-1
votes
0answers
23 views

How do I apply HTML IDs to field output result?

I'm trying to build a block for tb_megamenu of a view of items of a certain content type. I want to use some JavaScript so that when the end user hovers over a title then associated content appears on ...

15 30 50 per page