All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

How to hide VBO multipage selector in a view

I want to hide / disable the VBO multipage selector above the table in my view but I don't find where to do it. Anyone has an idea?
0
votes
0answers
3 views

Cannot autocreate node from webform

I attempted to create a custom module that automatically creates a node upon submission. I used the second response in this post: How to create a node out of a webform submission? Per the ...
0
votes
1answer
12 views

Filter by shared reference

[![enter image description here][1]][1]I have a content type of "School." I have a content type of "Event" that contains an entity reference to "School" so that events can be linked to schools. I can ...
0
votes
1answer
438 views

How do I avoid behaviors are invoked after an AJAX call?

I have a search result page, with the first set of data being fetched during the page load, and we add a Load More button. Clicking on this button fires an AJAX call, using the ajax_links_api module. ...
0
votes
1answer
13 views

How can I add a target to a custom form in Drupal 8

I've made a custom form in a module in Drupal 8 but I'd like to add target="_blank" in the form tag. When I try to add it in "$form['#attributes']['target']" the attribute is shown in the wrapper of ...
0
votes
0answers
20 views

Can hook_preprocess_block() be used to alter the block content?

I'm finding I can't alter block content with hook_preprocess_block() in Drupal 8. Should I expect to be able to alter content, such as a block body, using hook_preprocess_block()? For example, this ...
0
votes
1answer
13 views

Limit entity reference options base on taxonomy tag

I have three content types. Building, Department and Person. I connect this contents whit entity reference base on Content types. The problem is that I have a lot of persons and a lot of departments ...
0
votes
0answers
9 views

How can I reference previously imported media entities - Drupal 8 Migration

I have been trying to attach media entities to node entities in Drupal 8 with a custom migration but despite numerous attempts and countless hours reviewing forums i'm stumped - I'm desperately hoping ...
0
votes
0answers
7 views

Module configuration screens not appearing in MAMP/Drupal 7

I'm relatively new to Drupal and I'm trying to make a local copy of a Drupal site 7 site I administer to test some new modules. I thought I had got it working, and the site seems to load without ...
-3
votes
0answers
9 views

how to sett the deffault with 100% in all pages in drupal 8 [closed]

hey guys, I am working with o Drupal project and i have a problem is the page won't to take the full width ,even if I removed the sidebars left and right, but it still have a some padding i can't ...
0
votes
0answers
7 views

How to update default value of a datetime field?

I have a content type 'News' with a datetime field. I'm trying to alter its default value depending the choice of another field. So, i added some AJAX in the form : <?php /** * Implements ...
0
votes
0answers
5 views

Use default language domain when editing translated content

I have a multi-lingual site setup that uses two domains: example.com (Primary/Default English domain) example.mx (Spanish translation) When editing translated content the user is forced to 'example....
0
votes
1answer
1k views

Trusted Host Patterns Settings Not working with IP

So I am trying to get this drupal(drupal845.localhost) site accessible by my VM. But the Trusted Host Settings are not working. Here are the settings in my settings.php $settings['...
0
votes
0answers
10 views

twig check if image style or view mode exists

I have a site design the i need to implement. in this design I have a grid and in the grid I can put any content (node/paragraph) that i choose. the image of the content changes size and ratio in ...
0
votes
1answer
18 views

How can I have multiple content types pick up the same template?

I want to override the template for 5 content type that they have all the same attributes, but a different name ,so the suggestion is : node--contenttype1.html.twig node--contenttype2.html.twig ...
0
votes
1answer
6 views

Drupal 7: How can I display nodes of specific author in a taxonomy term?

I've a question about taxonomy terms. In my organization I've actors that work for me and, for each actor I created a taxonomy term containing some information, such as bio, an image etc. Each actor ...
0
votes
1answer
22 views

drupal 8 modifying the menu items path

I work on an drupal 8 application that use the group module with the restriction of only one group per user. i want to be able to modify the menu items so that the id of the user's group is always in ...
0
votes
0answers
6 views

Getting two errors when trying to click Extend and Config tabs

I'm getting the following errors: Drupal\Core\Extension\Exception\UnknownExtensionException: The profile does not exist or is not installed. in Drupal\Core\Extension\ExtensionList->getExtensionInfo() ...
2
votes
2answers
1k views

How to check if an entity is referenced before deleting?

Is there a module or a way to use Rules to make sure that a parent node isn't referenced by a child node before deleting the parent? In my case the children require a parent to be created. However ...
0
votes
1answer
453 views

Alter Registration Form Text

I am trying to alter the email description text on my user registration page. I have added the following to the bottom of my template.php file but nothing is happening. It seems like the function isn'...
1
vote
1answer
524 views

How do i disable price, shipping and payment in ubercart

I need to set up a "shopping cart" to allow users to collect URLs from my local database. All my products are free. Based on which URLs are in the users "basket" I fetch files and pack them in a tar ...
0
votes
0answers
8 views

How can I disable the default form validation error message?

I am using Drupal 8. When using "webform" module with the "inline form error" module, it shows both the validation error summary above form and each field error under the field. How to disable the ...
4
votes
3answers
631 views

Debug arrays from hook_cron?

Does anybody know of the proper way to debug objects from within hook_cron? I'm trying to set up a task that periodically deletes backups from my private folder, but I can't properly debug arrays that ...
0
votes
1answer
450 views

Displaying parts of main menu in separate blocks

I need to display my main menu in separate blocks: the first sub-menu in one block, and the following two sub-menus in another block. I'm using Drupal's native menu module and also the nice menus ...
0
votes
0answers
9 views

How to sort nodes in a view with current language first

How would I sort nodes in a view to show nodes translated to the current language first? This would then show nodes that haven't been translated to the current language after nodes that have been ...
1
vote
2answers
506 views

Views Accordion - group by taxonomy headers

Not sure why I can't do this as it sounds simple, I have: A content type called 'RSS FEEDS' A vocabulary called 'Publications' within this I have 3 terms which are 1) NY Times 2) BBC 3) National ...
1
vote
2answers
419 views

Controlling a dependent field in a multi-instance paragraph

The fields below are part of the node/add node/edit forms of my custom node type. The paragraph field_para_city contain one field_city. (I later need to add other fields in the paragraph). The user ...
1
vote
1answer
616 views

How do I programmatically render a view that has exposed filters?

I can call a view with contextual filters without any problem, but when I add exposed filter value $view->setExposedInput to the call, I just does not work, the exposed value is not applied and being ...
0
votes
0answers
14 views

How to set a message after a particular Page Redirect using Page manager?

After certain fields have been set on the edit node form and saved, I don't want the node author to change these anymore and therefore I have created a new variant with a response code "301 permanent ...
0
votes
0answers
32 views

Error on cron : Link could not be converted to string [duplicate]

Everytime cron try to run this error appear and everything stops. All I could find is that a Link is passed in filter Xss function when the cron try to index the website search. If I comment the ...
1
vote
3answers
574 views

How to reuses page--front.html.twig for multiple pages

I created a page--front.html.twig which allows me to create a distinctive front page. How would I go about reusing this page to create a landing page, a page with an identical layout the front page ...
0
votes
1answer
352 views

What invokes Bootstrap overrides.css?

I have a purchased theme that I've cloned, to which Bootstrap is set as the base theme. I've done the standard rebranding procedure of renaming all of the files and functions to match the new theme ...
-3
votes
0answers
29 views

How can you separately get the name and the value of a field?

I want to get the key and the value of my row for example I have this: {{ content.field_nom }} but the out put is: my field name my value My question is how do you get 'my field name' alone ...
0
votes
0answers
21 views

Using Drupal authentication with clientless remote desktop

Is it possible to pass along authentication of a authenticated drupal user, to a clientless remote desktop gateway(HTML5), if that user exsit with same creds with gateway? Example, user logs into ...
2
votes
2answers
30 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
-3
votes
0answers
32 views

Uncaught TypeError: $(…).once is not a function

I am having this issue on drupal 7 and can't find any solutions. Uncaught TypeError: $(...).once is not a function at Object.attach (eu_cookie_compliance.js?q5vyka:18) at Object. (drupal.js?...
1
vote
1answer
491 views

Reorganize Language Switcher based on Country/Region

I'm working on a site with 34+ languages and will likely be expanding to more. With this many countries, a simple drop-down list can be difficult for usability. I would like to customize the language ...
-1
votes
0answers
10 views

Remove Root directory from url through Imce [closed]

When i try to upload the photo through imce , it takes like(http://localhost/publicchargev2/sites/default/files/Home/PC-bed.png),how to remove the root directory and upload to live
0
votes
0answers
17 views

How to filter a view from within a paragraph ideally using url?

I have a basic page that contains a paragraph which has the following field: Label = News View Field Type = Views Reference (reference method = default) This references a view that has a contextual ...
0
votes
1answer
522 views

Is it possible to change the form submit handler from within a validate handler (need to redirect to another form depending on values entered)

I have an initial webform (based on 3.x of webform module/Drupal 7) that needs to redirect to a second form if yes is specified in a yes/no choice. Otherwise if No, the first form should submit ...
-1
votes
0answers
23 views

problem on content on editing [closed]

when I try to enter content on my drupla 8 on structure I get this error Le site Web a rencontré une erreur inattendue. Veuillez essayer de nouveau plus tard.Drupal\Core\Database\...
0
votes
1answer
478 views

What does it mean “Rebuilding” in a feature? Can it be resolved?

I did some changes in my local environment, then I updated the 'feature'. When I try to deploy the change to another environment, but before I can start the 'revert' operation, some parts of the ...
2
votes
2answers
4k views

How to import csv file for “field collection” using feed-importers

In Drupal7, In node processor settings -> we can't map field collection values. However they are multiple values, Is there any way of possibilites to import data through CSV file. I tried using field ...
0
votes
1answer
457 views

Show node body fields for entity reference checkboxes widget?

I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
0
votes
1answer
568 views

Gmap not displaying

I have Gmap and Location module. I have created a content type and also added a field location with term reference(Taxonomy term). I have just added a content and selected one location. But I can't ...
0
votes
1answer
521 views

How to add Shipping method for commerce flat rate module?

i am working on drupal commerce's "shipping" part, i want to create two methods for shipping as 1.Free Shipping 2.Express 2-day Shipping for USA . For "free shipping" condition is if order total ...
2
votes
2answers
1k views

Why is cache_render very big?

I am having a big problem with a newly created Drupal 8 site for a theater. After going live we discovered that the cache_render table grown extremely big, and extremely fast. After one weekend, it ...
1
vote
2answers
573 views

Views merge rows: merge uniques values and show the first one

I'm using Views merge rows to grouping rows by some fields, It worked good for me, but in some fields I want to show just the first filled value that means: merge uniques values+use the first value. ...
0
votes
1answer
777 views

Adding custom data to the node object

I have created a content type called providers and when editting said content types users can fill in extra information related to the content. I have included said form fields using hook_form_alter,...
0
votes
1answer
523 views

Error while accessing admin section

I am facing the following error while trying to access Admin section in Drupal 8 (WAMP Server). I tried to install the Update manager module and from then I am facing this error. I am unable to access ...

15 30 50 per page
1 2 3 4 5 1638