Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
1answer
16 views

How do I create a field template or template override for a specific display mode?

Because in the Drupal 7 Commerce module, the fields, 'sku,' 'title,' and 'status' aren't editable by Display Suite field wrappers, I'm unable to edit the field wrapper via the Drupal front end, I need ...
0
votes
0answers
7 views

How to hit an endpoint (menu route) with the session intact

I'm trying to hit an endpoint which shows different data when logged in/out. I am trying to write a unit test, but can't seem to figure out how to hit the end point with user context. How can I do ...
0
votes
0answers
4 views

Can tokens be used to set values of other fields and in modules which use tokens?

I am finding the Metatag module rather unwieldy, and I want to create fields in the content type from which Metatag values will be set. Are there tokens available for the fields of any arbitrary ...
0
votes
0answers
6 views

Why do some bootstrap classes disapear when i translate some elements?

I noticed that when using drupal in english with bootstrap theme, some buttons have a btn-success class which give them a green styling <div class="form-actions form-wrapper form-group" id="edit-...
0
votes
0answers
8 views

Switch panel page dependent on viewport

Using Drupal v7.5x panel pages with Bootstrap v7.x-3.20 theming, I would like to switch available page panels layouts based on the viewport found by the end user. For example, a minimal set of (ie 2 ...
0
votes
0answers
17 views

How to make default user registration form to multi step?

I want the multi-step sign-up form for my drupal7 website. So I have 2 approaches are here. https://www.drupal.org/forum/support/module-development-and-code-questions/2010-12-15/altering-user-...
0
votes
3answers
34 views

Is the current form an entityform form?

I am using entityform module on some forms, but in a custom module, I need to check if the actual form is an entityform or not. Depending on the current form is actually generated by entityform, I ...
0
votes
0answers
8 views

Removing an item from a field collection when a new item is added; re-adding it when an item is removed

In Drupal 7, I have a field collection with a list of values. After adding another item, the previous item should not appear in the field collection. Similarly, after removing an item, the previous ...
0
votes
1answer
23 views

User Created Slideshow

I am new to Drupal and I'm looking for a slideshow of user uploaded images on a user uploaded project. Basically, I want the user uploaded images to be shown on the content page, in addition to text, ...
0
votes
0answers
17 views

Is there any possible way to know how hook_services_resources() is implemented?

I have received the source code and the database backup of a live application. When I tried to discover its services, I found out that many custom services are implemented through custom modules, ...
-1
votes
0answers
14 views

Fivestar and other required field

I am using Fivestar and I need to have: If equal OR less than 2 stars, I need another field(image) to be required if so. It is in the comment form in D7. I tried "Conditional Field" module, but I ...
0
votes
1answer
13 views

How to define a menu with and without url arguments in hook_menu?

$items['jobs/%'] = array( 'page callback' => 'custom_changes_jobs_interface_create_update', 'access callback' => TRUE, 'page arguments' => array(1), ); I need to use jobs for ...
1
vote
0answers
12 views

How do I create field collection of/in another field collection programmatically?

Can anyone please help that how I can create field collection in another field collection using Drupal 7 Entity? The field structure is given below; Content type: Properties - field_1 - field_2 - ...
0
votes
0answers
16 views

hook for unsubscribing organic groups [on hold]

I am looking for the hook when someone clicks unsubscribe on Organic Groups. I need to do it with code or rules but I can't find this anywhere. Thanks in advance
0
votes
1answer
21 views

Is there a way to search Drupal's and contrib modules configuration settings?

With so many different modules in use with configuring Drupal it is hard to keep track of which settings are configured where, such as whether some CSS is set by the Code per Node or CSS Injector. It ...
0
votes
0answers
12 views

npm install fails - grunt not present [on hold]

For some reason, npm is failing because of dependency issues that I've not been able to solve. I've read the docs from npm.org, and searched here, but evidently me and my team are the only ones on ...
0
votes
0answers
6 views

Google doesn't recognize structured data on my website [on hold]

Google doesn't recognize structured data on Drupal 7 website. I have installed the module https://www.drupal.org/project/structured_data My json+LD codes is, <script type="application/ld+json">...
0
votes
0answers
39 views

Detecting a page if it is in edit mode by checking arg(2) == 'edit' is not working when there is an overlay

1Referring to the below question link Question: Know if the node is in view, edit, delete, etc. in page.tpl I am trying to make the markup of the module to appear only on the edit page. For this I ...
1
vote
1answer
19 views

Is there a way to supress particular messages or a class of messages on the screen?

Is there a way of suppressing a particular class of messages from being displayed on the screen, such as the one displayed below? Deprecated function: Methods with the same name as their class ...
0
votes
0answers
12 views

jQuery.extend inline doesn't pass CSP

My website had been working fine on chrome, however I realized on firefox and safari my javascripts were not loading. I got the warning Content Security Policy: Ignoring “'unsafe-inline'” within ...
0
votes
0answers
31 views

Theme function ignored until cache flushed multiple times

I'm using the ShareThis module to power my sharing links on a Drupal 7 site, but I don't think my question is specific to this module. I want to modify the link that's shared and sharethis provides a ...
-1
votes
1answer
12 views

How can I get the mappings from feeds

I want to get programmatically the mapping which was set by the user on the feeds config page (/admin/structure/feeds/<name>/mapping_en). But how can I do it?
0
votes
0answers
24 views

Very slow menu_tree_check_access query - how to debug

I have a Drupal System which is running fine in production and locally but the dev/cons Db seems to have a problem. After looking a bit deeper into it I found that menu_tree_check_access takes 3.8 Sec ...
1
vote
1answer
19 views

I am not able to override the form #access setting [closed]

I cerated a form alter with the file entity media upload browser. I studied this answer of how to alter this form. I then debugged and found that for what I wanted to do, I am in step 4 of the file ...
0
votes
1answer
30 views

Taxonomy terms with numeric names and views filtering within range

I have a very large taxonomy vocabulary with numeric taxonomy term names like: 10123,10124,10125,... etc. My node have a min value field and max value field. Both fields are taxonomy referenced fields ...
0
votes
0answers
16 views

Fit for purpose responsive Mega Menu module [closed]

There doesn't seem to be any up to date responsive mega menu modules for Drupal 7. Can anyone recommend or point me in the right direction to an up to date module? I've tried Megamenu and TB Mega ...
0
votes
0answers
36 views

Admin Menu is not visible?

I have created the new admin custom menu with the below code, function example_menu() { $items = array(); $items['admin/config/example'] = array( 'title' => 'Example', ...
-1
votes
0answers
20 views

How do I get a list of all the selected values ​for a field?

I have a list of unallocated cylinders and I want to display all the seleceted cylinders in allocated cylinders list. How can I achieve this just by configuring? Note: I'm using drupal 7. I have ...
-1
votes
0answers
37 views

How do I use Alfresco's Angular component?

I followed the Creating your application with ADF tutorial to just use the Alfresco Content Services. I am planning to add this Alfresco's Angular component in a Drupal 7 site, maybe as a web page, or ...
-2
votes
1answer
25 views

The site is in a subdomain, but I get the wrong file path and a “require_once(): Failed opening required…” error

I have inherited a half ready development site, which I have to finish for the client. First I tried to backup and move to an other location, so I am sure that I can migrate the whole site. I moved ...
0
votes
2answers
15 views

How do I add an image field to my node.tpl.php template using render($content['field_example'])?

I am creating a Bootstrap sub-theme and want to customize my node.tpl.php template. I have an image field with a machine name of 'field_poster'. According to the default node template: $content: An ...
0
votes
1answer
13 views

Rewrite output for view field only when certain condition is met?

You have a list with Views It contains titles of nodes. When clicked those titles redirects to the nodes. How to make a condition that if e.g. a checkbox is selected in the node saying something like ...
0
votes
1answer
19 views

What might be the root cause when suddenly few images from the site disappears and after doing cache clear they reappear again? [closed]

My site is hosted on acquia server and we are using different image styles for the images.Suddenly few images got disappeared and after doing cache clear the images started appearing again and we are ...
0
votes
0answers
9 views

Trying to apply a modal to each item in a menu

I am trying to assign a ctools modal to each link in the main menu, with the goal being putting these links into a popup. I tried to figure out a way to do this using a hook, but none of the hooks I ...
0
votes
0answers
15 views

How to add currency field?

With respect to the question, can anyone suggest a remedy for the same. How can I create a field for currency(with selecting currency and text field to enter the amount) considering the fact that ...
0
votes
1answer
33 views

hide empty exposed filters

I have a view with an exposed filter that searches nodes for taxonomy terms. For example there are 10 terms but the nodes only use 7 of them. When the view is shown on a page the 10 terms show in the ...
0
votes
0answers
17 views

Custom template for registration mail

I have a custom template that I use to send all my mails, and I want to use it too for the registration and password reset mail. I only know how to use hook_mail_alter(), but it seems that hook allows ...
3
votes
1answer
31 views

How to set additional node type options programmatically?

When creating a node type programatically, some node type options can be set in hook_node_info, including name, base, description, has_title, title_label, has_body, and help. As far as these node ...
0
votes
1answer
9 views

500 error on one page in entire site only showing error “You are here” instead of administration content

this error seems to only affect one page in on the website, and nowhere else. Here is what it looks like: The watchdog reports do not show the issue, and I believe it to be a permission error or ...
1
vote
1answer
20 views

How to show users who have not flagged a node with any flag?

Drupal 7. I have a content type that can be flagged with 3 different flags. I need to display a view of users who have not flagged any of them. The users that are allowed to flag are listed in an ...
0
votes
0answers
26 views

Views Contextual Filter replace space in raw url with slash

I have search api page for products that works great. I want to use the same keywords from the search api products page and have them search content (not products). The search api page for products ...
-2
votes
0answers
36 views

How can I Defer offscreen images? [closed]

How can we defer offscreen images manually? I have used this module https://www.drupal.org/project/defer_image It provides the field formater defer image which can be applied on images uploaded ...
0
votes
1answer
17 views

How to avoid “The form has become outdated” after login in separate tab

I've read this and this and I can't see how to apply that to my situation, so asking another question. not-logged in user visits a page with a form on it. User opens a new tab and logs in. User ...
-1
votes
2answers
37 views

Show blocks at a specific URL

I'm trying to move some Blocks to a different Page. None of the Blocks are defined in a region. They are specified to display on every Page. In reality, they show up on only one Page. I tried ...
-1
votes
1answer
24 views

How to use GreatSchools API module?

I enabled the GreatSchools module and entered the API KEY from greatschools in the configuration but there is no documentation on how to see the schools as content. Can you point me to the right ...
0
votes
2answers
19 views

How to create links from term to node

On the node display I would like to create a list of services but for some of the services, I would like the list element to be displayed as a link to a certain node, and some will not have links. I ...
2
votes
0answers
20 views

External CSS file is not being loaded

I added an external CSS to my theme. When I look at the source code the external file is not being rendered. In my html.tpl.php file I have: <?php print $styles; ?> In my template.php. file ...
0
votes
0answers
8 views

TinyMCE and WYSIWYG not sizing the images I select properly. Image Resize Filter doesn't work either

I am using WYSIWYG and tinyMCE. I select an image by clicking on the insert/edit image icon in WYSIWYG toolbar, and I can clearly see in the File Browser that it is 64px by 64px. When I click on the ...
0
votes
0answers
12 views

How do I reorder page elements placed with Display Suite?

I want to change the stacking order of a certain page of a website of a client of mine. It's quite simple what I really want. You can check the screenshot. The website's current Drupal version is 7.59....
0
votes
0answers
10 views

Filter only when set: Checkbox (Boolean) filter in a view in Drupal

I have a boolean checkbox filter in a view which is working normally. That is; when clicked it loads the page with a URL parameter set and when I unclick, it unsets the URL parameter and loads the ...