All Questions

0
votes
0answers
2 views

How many different ways are there to create a “page” in Drupal 8?

By page I mean what's served by a given route/url. Trying to understand all the options so I know what I can combine (e.g. create a View, and use a render alter hook to add a form at the bottom). ...
1
vote
1answer
1k views

How to add a tabbed menu on group main page (panel)?

I managed to get panels working with og 7.x-2.1 following: - http://modulesunraveled.com/organic-groups/part-3-organic-groups-layout - http://www.initsix.co.uk/organic-groups-panels-and-views-drupal-7 ...
-1
votes
0answers
10 views

Drupal 7 Commerce KickStart - Add A Field in Product Variation that lets user Choose From A List of Terms in A Specific Vocabulary

I want to add a field in product variation that lets customer choose from a list of terms in a specific vocabulary. For example, I have a vocabulary of "Pizza Recipes". The terms in the vocabulary ...
1
vote
2answers
750 views

How to translate the language switcher links

In Drupal 8.1 the language switcher (block can be placed in a region) shows the languages labels in English: English | German | French I want to translate it. Visiting mysite/de the label should be ...
0
votes
0answers
5 views

Print module download pdf file name change characters into HTML entities

I am using print module to generate pdf using dompdf library. I am facing issue with file name which node title have ampersand(&) sign, this character is converting into &. For example- ...
1
vote
1answer
10 views

Display a view block with a list of content excluding the one currently displayed on the page

I sometimes use contextual filters to display fields matching the content ID from url In that case , i would like to display a list of content as a view block , except the one that is displayed It ...
0
votes
1answer
26 views

Programmatically auto-submit a Webform after visiting its URL

I am wondering whether it's possible to programmatically auto-submit a Webform after visiting its URL and to save the user from a 'submit' button click. The below webform can be accessed via /form/my-...
-1
votes
0answers
44 views

Grouping field and display the result in chart

I am trying to display the data submitted through a webform in graphical manner using charts. I want to group the data by field. For example , if there are n customers and they submit the order to ...
0
votes
1answer
2k views

Programmatically upload a file to a custom file field

I am trying to update a node and programmatically upload a file. $nid = 45343; $node = node_load($nid); $image_url = 'http://test.com/misc/druplicon.png'; $file = system_retrieve_file($image_url, ...
0
votes
0answers
4 views

Contextually filtering a view using values from a completely separate table?

I have a table "user_connections" id | uid1 | uid2 1 | 1 | 2 2 | 3 | 1 etc So, if the current user has uid = 1, then according to my table, he is "connected" to use 2 and 3. So I just want ...
1
vote
1answer
15 views

How to disable views pager programatically in certain cases

I have a paragraph which shows a view. The editor may set some options as argument filters, sort and show/hide pager. "Normal" fields are used to collect these options and ...
3
votes
0answers
26 views

Alter webform messages found in WebformMessageManager

List item Is there a way to change the hardcoded webform messages from /webform/src/WebformMessageManager.php? for example, the one on line 284 case WebformMessageManagerInterface::...
1
vote
1answer
940 views

How to add delete button to file field upload widget that actually deletes the file (not just association with content)?

After uploading a file with the File widget for the File field, the file is on the server and remove only disassociates the file from the field (and the content that the field belongs to). I would ...
-3
votes
0answers
18 views

Is there any module that supports RTMP (Real-Time Messaging Protocol) in Drupal 8? [on hold]

I need to implement RTMP services in my site. Does core media module support RTMP?
2
votes
1answer
2k views

Display Auto Generated Youtube Thumbnails with 'Video Embed Field' Module in Views

I added some videos to my site and I'm using views to display them. I followed a tutorial and i used the rewrite the output option of the view with allowed replacement patterns to display videos in ...
0
votes
0answers
14 views

Creating a “tag blacklist” for users on a view

I'm looking to allow users to create a "blacklist" of certain tags on a site. My plan was to do this through adding a "Blacklisted Tags" field on the user entity, but I'm open to other solutions. If ...
4
votes
7answers
3k views

Link to content in views doesn't translated to fr

I made a content ( type = article). I made a view ( list of articles) and i add link to content. I activate fr language in the site => so www.example.com/liste-des-articles => english page. www....
1
vote
2answers
2k views

Get $form_state values from individual entity form fields

I have a weird use case. I created a custom form with some fields and I added some other fields from one entity form like this: public function buildForm(array $form, FormStateInterface $form_state) {...
0
votes
1answer
12 views

How to programmatically search content with a specific taxonomy term with Search API?

I'm working on programmatically searching content with the Search API module. Ideally I would like the ability to select which taxonomy term of a content type is being searched. For example, if I have ...
0
votes
2answers
2k views

How do you perform a Guzzle POST request with “Basic Auth” for the current user?

In my class, I have the following request: $rest_response = $client->post($endpoint, [ 'auth' => ['admin', 'admin'], 'body' => $serialized_entity, 'headers' => [ ...
5
votes
6answers
507 views

How can I ensure automatically that a module is disabled on my live site?

I'm using a development -> staging -> live server workflow, and all three sites run off the same Git repository. The repository contains a few modules (a custom module for Selenium testing, etc.) that ...
-3
votes
1answer
18 views

Create a rule and inject mysql code

Can I create a rule on my drupal 7 website and that rule will: Whenever a user is logged in (only logged in users can see this content) and a certain content is clicked I want to write a mysql update ...
2
votes
1answer
793 views

How to display physical dimension fields on node--product.tpl.php?

I am using the Drupal Commerce module and I want to print the physical dimension fields(machine name: field_width) value on product detail page. How can I print physical dimension fields value in ...
0
votes
1answer
11 views

Multiple path aliases based on taxonomy term

I have taxonomy terms from A-Z and each article can belong to multiple terms. for an example, when I create a new article, I have a multi select list for terms. Therefore a particular node should ...
0
votes
1answer
935 views

Pathauto insert taxonomy term custom url

I have change the url of an taxonomy term. Now when i use a field with taxonomy term the url is showing like this: [node:field-taxonomy:parents:join-path]/[node:field-taxonomy:name]/[node:title] ...
0
votes
0answers
6 views

Views filter, add an anchor to the redirect url

I have a website with some news. I create a view that show this view and can filter them by category. The problem is that when I use my filter it reload the page and go at the top of the page, I want ...
-5
votes
0answers
13 views

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads?

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads? Need to upload genomics FASTQ files. The backend will process them and return results to the email, provided ...
-2
votes
0answers
17 views

How to use custom theme for a single custom module Drupal 8?

I have a .module file for my custom module where i have written a hook. I want this custom module to use custom theme. I am using Drupal 8. function check_theme($existing, $type, $theme, $path) { ...
0
votes
1answer
757 views

Using #states to disable a field collection field

I am trying to disable a date field's second value, inside a field collection, but it isn't working. My hook_form_alter has this: $form['field_certification']['und'][0]['field_validity']['und'][0][...
-2
votes
0answers
11 views

training comparsion between drupalize.me and build a module [on hold]

We are looking for online tutorials and found 2 options 1. Build a module 2. Drupalize.me could somebody please help which of these websites have good and structured content for learning .
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 ...
0
votes
1answer
8 views

How to use a token in the reference fields

1-I have a node with the name of the project. 2-this node has a project_name field that generates by these Tokens 3- I have a reference field that it load an entity type in the project create the ...
0
votes
1answer
693 views

Programmatically added block does't appears in block admin page

I created a programmatically block in a custom module for Drupal 8.1. The custom module and the block plugin are created via Drupal Console. I installed my module and I clear cache via drush cr, but ...
1
vote
1answer
753 views

URL rewrite of localisation with nginx

I'm having trouble with changing the url of a drupal localisation. All urls are clean, but contain a non-clean localisation part; ?q="language", e.g. ?q=de, ?q=fr. The site runs on nginx + mysql + ...
0
votes
0answers
20 views

WHERE the alias file should locate in drupal

I have tried some ways to create an alias for my local Drupal project https://www.drupal.org/node/1401522 https://www.drupal.org/project/drush/issues/831272 https://www.drupal.org/project/drush/...
1
vote
0answers
12 views

IEF reference show parent field as title using Auto Entity Label

I am new to Drupal 8 want to add a field value to IEF reference title. for now, I am using Auto Entity Label version 2.x-dev to automatically generate a title for my Entities but when it comes to IEF ...
2
votes
1answer
806 views

watchdog truncate or delete

Watchdog table has become so big that, truncate cascade or delete command in the table is not working at all. The moment the server encounter a DELETE command in watchdog, it gets busy in executing ...
0
votes
0answers
2 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page

I want to add a quantity widget in the content of my product page. It wasnt present in my interface. I dont why the quantity widget shows up automatically in other content types. I viewed managed ...
-2
votes
0answers
11 views

I want to know more about menu links [on hold]

I want to add more details to my page instead of it being just a straight down page. How would I add format so that I can buttons on the left or right side with words?
1
vote
2answers
526 views

Trigger an action programmatically

I have defined an action and want to trigger it from a hook. We do not want to use the Rules module, because it is still buggy with Drupal 8. So, we cannot use rules_invoke_component(). What is the ...
0
votes
3answers
672 views

copy term reference from one to other field

I have two fields (fieldtype = term reference) in the same content type and I would like to copy the settings from the first to the second one. After searching for a solution I found this thread but I ...
0
votes
4answers
2k views

How to run jquery codes before and after ajax call?

I want to create a loading code while the ajax call is not yet complete, AND enable my jquery code after calling the ajax of drupal form. The ajax I'm referring to is the "Add new field/Add more" of ...
2
votes
1answer
785 views

Saving form fields on custom entity

I'm having problems saving my custom entity to the db. I created a custom entity called 'review' using hook_entity_info() with a custom controller. I have specified some parameters in the controller ...
0
votes
0answers
21 views

How to serialize a form's render array to json in Drupal 8?

I want to build a REST resource to return Forms as JSON with all labels, help text, default values, etc... When I use REST's built-in resource /entity/entity_form_display/node.article.default it does ...
0
votes
0answers
15 views

Link entire teaser views row to content with core or contributed module?

When creating views I prefer use views modes rather than fields. I have been reading up on accessibility stuff and one topic that comes up is that adjacent fields, linking to the same url can be a ...
-1
votes
0answers
19 views

How to disable caching for hook_preprocess_menu

I have used hook_preprocess_menu to add the child to the menu items. The child's are a specific content type. If i make changes to the content the changes are not reflected to the menu item child ...
0
votes
1answer
1k views

How do I redirect to a route with POST method?

I want to redirect to a route and also want to send some parameters which I don't want to expose on URL. So, I need to redirect with a post method. How to do this? $form_state->setRedirect('route....
0
votes
1answer
770 views

How to render entity reference data in field template?

I have a field collection with adding multiple items. In each item there is an entity reference field with multi-selection of contents. I can render entity reference content by target_id using ...
2
votes
2answers
862 views

pass array from module to render in template

I have a module name mysite.module in that module I have function named mysite_preprocess_panels_pane. That has an array and I would like to render this array inn panel.tpl.php. My code does not work. ...
-1
votes
0answers
8 views

How can I style image on custom form upload?

I have Drupal custom module with a form and a number of fields in it. File upload is one of them, it's working fine. But I need to preprocess image before uploading, preferably with Image module. Here'...

15 30 50 per page