0
votes
0answers
4 views

How I can management private files

My default download method is public, but I need save some file on private folder, I am doing this: //... $file = file_save_data($handle, 'private://example.zip', FILE_EXISTS_REPLACE); //... Now ...
1
vote
0answers
4 views

How to preserve formatter settings if the field gets hidden

I have a field formatter that has a setting. This setting is not available via the UI(\Drupal\Core\Field\FormatterInterface::settingsForm()) and is configured programmatically(in the display or when ...
1
vote
1answer
8 views

Most maintainable way to make page with one top half and alternative bottom halves selected by tabs?

I want to make a page which has one top part, a row of two or more horizontal tabs beneath it, and alternative bottom parts which appear beneath that and can be selected by clicking on the tabs. For ...
1
vote
0answers
2 views

schema_fields_sql empty on entity_get_info

I'm trying to debug why Drupal Commerce License Billing isn't working on existing install but works fine on fresh install. The difference I can see between the two when adding a new billing type is ...
2
votes
3answers
11 views

Why can't I change site title?

For some reason, I'm not able to change the name of this site. When I change the name (below I'm trying to change it to 'Test Name') and save the page, the name is repopulated with the previous ...
0
votes
0answers
7 views

Drupal 7 Forbidden access and save issues

I am working on a Drupal 7 website. I am not a coder! I have been using the book module recently and since using it I have begun to get errors while saving. When I go to create a new child page, ...
1
vote
2answers
9 views

How can I evaluate the security of a contrib module?

Are there security standards for each stage of a module on Drupal.org? Create sandbox project > full project with dev version only > official release What is the process for the security of ...
0
votes
1answer
4 views

Showing only certain product attributed in a view rather than them all in Commerce

I am using Drupal Product Pricing, Product Options and Product attributed modules. I have created a number of different attributes for products but my issue is that when including them in a view it ...
0
votes
0answers
7 views

Serve 404 page on view with contextual filter?

We use facet filters to create collections of content. The facet filters create url arguments that look like this www.example.com/l/language or www.example.com/l/language/g/gender For SEO reasons we ...
0
votes
0answers
5 views

views exposed filters with or grouped filters doesn't give result I expect, where'e the problem?

so what did I do: I have a views calendar which shall show results of 2 content types. These 2 content types have different exposed filters, combined by 'or' groups. Without filters I see the ...
0
votes
0answers
8 views

Views – grouped filters based on integer range

I'm developing a recruitment website which will allow users to filter jobs by salary. It has been designed so that the filter is grouped into salary ranges like this... I am using the Range module ...
3
votes
1answer
13 views

Disable caching for custom entity

I have set up access to some custom data by creating ContentEntity classes in my module, so I can query and display that data through Drupal entities. However, that data is also updated by a ...
0
votes
0answers
19 views

Form is not submitting

<?php $arr = drupal_get_form('report_page_form_form'); print drupal_render($arr); $i = 0; $sum = 0; function report_page_form_form_submit($form, &$form_state) { if ...
0
votes
1answer
23 views

Callbacks order in Drupal 7

I have 2 modules (filters): html_pre_filter and syntaxhighlighter. syntaxhighlighter_prepare_callback executes before html_pre_filter_prepare_callback. How to reoder them? I tried this function ...
0
votes
0answers
8 views

Can't migrate my website from localhost to webhost [duplicate]

I can easily install Drupal 7.37 on my webhosting. But cannot migrate the existing website. I uploaded all the files. Imported the database. Changed settings.php accordingly. But what I see is only ...
0
votes
0answers
14 views

How to solve claimitem() in batch process?

I am doing batch process in D8. here is my code: This code is in Controller.php $batch = array( 'title' => t('Started Importing node Data.'), 'error_message' => t('Error!'), ...
0
votes
2answers
28 views

Display custom block to specific content type programmatically

I created one custom module, it will create one custom block when it is installed. I want to display it on "product" content type only. Can I do the same with programmatically. It'll save my time. ...
0
votes
0answers
9 views

Field Collection fields shows changed data in views rows if workbench is applied on node

I am making a view of node which displays data of Name field created in field collection . I also used workbench module to maintain moderation states of node . One problem I am facing after updating ...
0
votes
0answers
5 views

How to create openInvite for event in drupal Commons

I am working in Drupal Commons and my idea is invite friends list for event just like FB, Twitter and etc.How to achieve it..I installed invite module for event section.but i couldnot achieve it.Here ...
0
votes
0answers
14 views

Making First Login and zurb Joyride Module to work together

I want first time logged in users to guide. I am using Joyride module for that but I can not guide only first time logged in users. I tried using "First Login" Module for that but that thing is not ...
0
votes
1answer
36 views

How to give confirmation for deletion through link?

I have tabular format data and each row I have an edit and delete links , on clicking on the delete link it should ask for a confirmation to delete and if press delete only I need to delete. Now its ...
1
vote
0answers
16 views

How to set (import) oembed's ctools exportable settings as defaults for the module programmatically?

Oembed provides defaults for some providers (e.g. youtube, twitter etc) out of the box. It also provides the ability to export each provider's settings through the UI. I have added a new URL pattern ...
-1
votes
0answers
18 views

How to generate a template on every block creation?

I am creating blocks dynamically. So, What I want is, whenever a block gets created, a template should generate in sites/all/current-theme/templates folder whose name should equals to block machine ...
0
votes
1answer
28 views

Adding a field to all the views

I am taking over the maintenance of a site. There are numerous views in the site(Around 40). I need to add the nid field as the first field in all these views. What is the most efficient way of doing ...
0
votes
1answer
19 views

WYSIWYG problem [on hold]

I have created a page from where I can edit the content of the page. When I click on edit, the WYSIWYG box appears; instead of showing the body, it displays the webpage I am using. Do I have to edit ...
-1
votes
0answers
12 views

popup msg on comment like facebook

I am looking for a way to view the author a popup message after adding new comment on their article. the problem is that no refresh needed here. I need an ajax message. I've tested most of the ...
0
votes
0answers
21 views

Entity reference content dose not appear

I have a problem in viewing the content of an Entity Reference in a content type. when I add a link of the node or an Entity form the content of it appears only in admin content type view , while it ...
0
votes
1answer
20 views

How to delete an upload from an order in Commerce

I have a situation where the customer uploads a file with their order, the only way currently on our site to delete the artwork is to delete the order or delete files through FTP. Neither of these ...
-1
votes
0answers
20 views

How to write this query using db_select in drupal 7 [on hold]

I am writing below query using db_select in drupal 7. SELECT * FROM users u WHERE u.uid IN (403,526,525,440) ORDER BY FIELD(u.uid, 403,526,525,440)
0
votes
0answers
12 views

How to totally DISABLE the Login from Codes? [duplicate]

I don't want to use the Drupal Admin Panel. And rather totally DISABLE the login form. (For myself as the Admin also. I don't need to enable login form) How to simply do it from backend Code level ...
0
votes
1answer
28 views

Hierarchical select for Entity reference

I have a content type called Faculties and I have another content type called Departments. In the Department content type I have an entity reference select field for Faculties content type. Every ...
0
votes
2answers
34 views

Want to use exposed filters to pass arguments to a view

The title explains a lot. I have a view which shows everything of the content type and has exposed filters.(<-main view) Now I made another view where I used the exposed form style because I ...
0
votes
1answer
30 views

How do I make comments visible only to the commenters, before approval?

The site is visited from anonymous users, who have the permission to comment. Those comments need to be approved to be visible, and I would like to make them visible only to the users who posted them, ...
2
votes
2answers
44 views

Overriding Drupal core base class

I need to override the block configuration form in Drupal 8. To override the configuration form for a new block we are creating can be done by implementing BlockBase::buildConfigurationForm method. ...
1
vote
4answers
95 views

submit custom form drupal 7

I've created one custom module to display product review form on custom created block but i'm not able to submit form and also I can't see form name while I checked with inspect element. give me ...
-1
votes
0answers
23 views

send mail notification on particular date [on hold]

I have created content page with two date fields, i want to notify the user sending mail automatically on two different date for different reason. Ex: I have content type with fields like"date alarm" ...
0
votes
3answers
35 views

placeholder on searchbox

here is my template.php code: function sizin_preprocess_page(&$variables){ $search_box = drupal_render(drupal_get_form('search_form')); $variables['search_box'] = $search_box; } ...
1
vote
1answer
25 views

How to link an image with a PDF?

Actually, I have a content type with 2 fields, image field (multiple) which will contain some pictures and an attachment field (accept only one file) which is file of type PDF. I have a view where I ...
0
votes
1answer
12 views

How to file_save_data with utf encoding?

file_save_data is saving files with ANSI encoding. I want utf8. How can I specify encoding?
1
vote
0answers
22 views

How can I setup multiple database connections in Drupal 8?

Can anyone help me to setup connection with multiple databases connection in Drupal 8? I have database on the same server and I want to access it along with default Drupal 8 database.
0
votes
1answer
20 views

Concatenate and minify css with Gulp still necessary?

I'm using Gulp as part of my theming workflow and was wondering if it was necessary to add the concatenate and minify tasks into Gulp if Drupal already does that when I check the option under ...
-2
votes
0answers
23 views

How do I delete a region from FTP? [on hold]

I created some custom code that I put in a block in the Help Region. Currently because of this code the site is not rendering anything. I was using
0
votes
1answer
28 views

Sometimes Drupal loads very slow [duplicate]

Just installed Drupal 7 on completely new instance (RHEL7, 2 CPU, 7.5GB, SSD). This instance works on Google Cloud. OS and databases are located on different SSDs (but in the same data centers). And ...
0
votes
0answers
12 views

Imagefield Crop interface display skewed

I'm using Imagefield Crop on my Drupal 7 site (just like I've done dozens of times before). This time, however, the crop interface and output is all wonky: That crop yields this output: I ...
0
votes
1answer
18 views

Inline fields on node edit form

I managed to get fields inline on node display, but cant find a module to help me do it on node input. I am mostly using DS, field collection and field group (field gruop has this option but only for ...
2
votes
1answer
26 views

Help with rules - remove shipping option if coupon applied

I am in a situation where if a coupon code is applied to an order I'd like it to remove a free shipping option, if no coupon is applied then the allow the free shipping option. I have a rule setup ...
0
votes
1answer
11 views

Unable to implement photo slider in theme template

I downloaded a theme from here and I chose this theme because I wanted to builder a slider photo gallery as shown in the screen shot here. However, I am unable to achieve the desired effect because I ...
2
votes
3answers
25 views

Using Panels for Layout vs. custom .tpl files

I'm working through some layouts that aren't entirely complex but are definitely outside of the core Drupal provides. It really does seem like there a 20 ways to do one thing in Drupal. My question ...
1
vote
0answers
7 views

Rules Loop does not fully loop through checked taxonomies

I have a content type that has a field which references my Country taxonomy. The field settings are set to unlimited so it is displayed as checkboxes. The country field is also displayed on the users ...
0
votes
0answers
17 views

How to load sliders on subsequent pages in GD Infinite Scroll?

Here is my Testcase. If you scroll down, the feed will automatically extend: It is an infinite scroll-feed. However, the slider images of subsequent pages are not being loaded. As soon as the page is ...

15 30 50 per page