Unanswered Questions

2
votes
1answer
96 views

Why use constuctor injection in controllers or forms?

Documentation is proposed to use injection in constuctor instead use \Drupal::service(). Why? Example with injection: class MyController extends ControllerBase implements ContainerInjectionInterface ...
1
vote
0answers
6 views

How to display a field of an entity in drupal 8?

I've studied D8 for one and a half month, D8 is so difficult for a complete newbie, almost all articles about D8 are for people who have experence on D7,on the contrary,it brings more confusion , not ...
1
vote
1answer
9 views

Drupal commerce user based percentage discount

I need to have different order total discount rates in % for each customers. The default discount is 10% for all users and it need to be override for certain users too. i.e administrator can set the ...
0
votes
0answers
6 views

db_query complete Content Type with all fields automatically

Can I do this automatically in my module without hard coding the list of content type fields: $query = db_select('node', 'n'); $query->join(ALL FIELDS OF THIS CONTENT TYPE, FIELD ALIASES, ONs); ...
0
votes
0answers
4 views

Panels - simpilfy content management?

I want to make it easy for web managers to change content in panel layouts. I.e. not the layout in itself but specific content. For view listings in panels, it is quite straight-forward for web ...
0
votes
1answer
10 views

How to count date difference excluding weekend and holidays

How to count date difference excluding weekend and holidays? I should count the number of days between two dates but the weekends and holidays must be excluded from the counting. I used Computed ...
0
votes
0answers
12 views

Manage Dependencies problem

I have created a view table It has editable fields with dependencies If status = "rejected", the remarks textbox is visible If status = "waiting for approval", the remarks textbox is invisible ...
0
votes
2answers
73 views
+100

Can't update drupal core to 7.27

I'm tring to update using drush, with the command drush up, but core is not updating. it says on the drush output: Project drupal was updated successfully. Installed version is now 7.27. but it's ...
0
votes
0answers
7 views

Can drush make fetch dependencies for a newly added module, without using it to build the whole site?

If a module includes a drush make file to fetch its dependencies, is it possible to run that make file by itself somehow against a pre-existing site's codebase? In other words, I didn't use drush make ...
0
votes
0answers
19 views

How to make one rule dependent upon the success of another?

I am using Entityforms and Rules to send an email notification to the administrator, and a confirmation of receipt to the user. Each of those two steps are separate rules. How do I make the user ...
0
votes
4answers
312 views

Multiple slideshows on a page

On the home page of a site I want to list each node as an individual slideshow. Each node shown will be of the same content type. I am using views slideshow and panels if it helps.
0
votes
3answers
657 views

How to view PDF files in a modal/overlay

I have pdf (managed) files on the server that I want users to view in a modal. This will be part of a module I'm creating. There are a couple of modules that help with this, but I haven't found a good ...
0
votes
2answers
507 views

Admin Approval for Webform Submitted data

I am new to drupal , and need functionality like , When any Users submit Webform then i am displaying that submitted data in another page . but in between i need Admin Approval so for that how to ...
0
votes
2answers
1k views

Drupal Display “Master” Error in View

While I'm creating view displays for three of my content types, created first two and auto previews look fine. When I created the third one, the server kinda went down for a while. So I waited till it ...
8
votes
0answers
734 views

What is causing Views to consistently but intermittently not find a view provided by the Advanced Forum module?

I'm getting a frequent, intermittent error from the Advanced Forum module that causes a 500 error when it occurs (WSOD). On production, it's happening about 20 times per hour, on probably 2-3% of all ...

15 30 50 per page