Questions tagged [7]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
8 views

Get order of a content type's fields

When I manage fields in content type edition I can put them in order. How could I retrieve this information to use it in a custom module. In Database there is no any column which saves weight order ...
1
vote
1answer
632 views

Cache not clearing on expiry

Using the steps explained here: http://www.lullabot.com/blog/article/beginners-guide-caching-data-drupal-7 I'm storing an array with specified expiry time. But what is happening is that even after ...
1
vote
1answer
629 views

Why computed field is not getting displayed while creating content

I using "computed field" Module. I have installed the 7.x-1.0-beta1 version computed field module. Enabled and save the configuration. I have created a computed field and just displayed "Hello" in my ...
3
votes
1answer
687 views

How to do push data to datalayer after Ajax callback?

I have a view with many elements and use views load more -> view using views load. Modules: Views Load More. dataLayer. Is it possible send datalayer event after load elements with AJAX? I am ...
0
votes
0answers
9 views

How to change path of composer manager file directory?

I have Drupal 7 setup with Composer Manager installed in it. I wanted to set-up the website in dev environment hence took DB backup and files from the production environment, and installed it in dev ...
0
votes
2answers
527 views

Send mail once content approval of custom content types

I am creating one Like job posting custom content type.The permission for only posting the job for recruiter.After Post the job I need the approval for publishing permission from admin. My thought ...
1
vote
1answer
2k views

How to change composer file directory after it has been set?

So, I've been struggling with some problems with composer and drupal 7. I have composer and composer manager installed because of dependencies for the OpenLayers Module. I don't think I use these ...
4
votes
3answers
869 views

Building a search View that respects access control

I'm implementing search on a site using taxonomy access control with search api and search api solr. Reading the help page node access section, I see: Needs details on how to build a View that ...
1
vote
2answers
1k views

Close the iframe after login with Shadowbox module

I have installed the Shadowbox module and I use it to show the login page in a pop-up iframe. The problem is when I click on the sign-in form submit button the iframe still appears and the page ...
3
votes
3answers
2k views

How to add onclick event to a link?

I need to create a link, which when clicked should be able to set a session variable. I have used l() function to create the link and tried this but this is not working. 'name' => l(t($n['name']),...
1
vote
2answers
747 views

Dynamic menu item based on Views argument

Is it possible to have a dynamic title on the menu item based on the argument that Views is receiving? I'm using the title on the menu item on the breadcrumb and my breadcrumb changes based on the ...
0
votes
0answers
122 views

Field content not showing in public view

I didn't build the website, and I'm new to Drupal. I've been asked to add a new field to an existing content type. I've added the field, and it shows up on the form for that content type, but the ...
0
votes
2answers
537 views

Multiple forms and required fields affecting hook_form_FORM_ID_alter()

When creating a new content type, the $form_id is correctly picked up in my module. Let's say in my example, my form is called the 'foo_form'. The below hook_form_FORM_ID_alter function works fine ...
0
votes
1answer
843 views

Remove an uploaded file

I am working with files in a Drupal module. I added this form: $form['Background_image'] = [ '#type' => 'managed_file', '#title' => t('Image'), '#...
1
vote
1answer
653 views

Associate an image with each checkbox in Webform

I'd like to have a graphics-oriented Webform, wherein the user will select from check boxes that have a specific image associated with each. For instance, I might have a row of checkboxes with a color ...
1
vote
1answer
648 views

Updating the block region/pages settings for a NEW views block during an implementation of hook_update_N

I have a feature module which provides a view which has a block component. To keep things simple, the module I'm writing a hook_update for is 'mymodule' the feature which implements the view is '...
0
votes
2answers
534 views

Translation for node references not working properly

I have two content types: product feature and product. Both can be translated. If I create English product and assign many product features (by node reference inside field collection) and then create ...
2
votes
1answer
657 views

How to implement Instant Notifications to 'follow' or 'like' nodes?

My employer has a social intranet site with 1000s of users, groups, communities and blogs. Users are free to 'follow' or 'like' nodes, blogs and other users, subscribe to communities, join groups etc. ...
4
votes
1answer
385 views

How to limit what is available for a role in Administration menu ?

I am using Drupal 7 and installed the Administration menu. It works fine and I am really happy with it but after creating a new role, and also creating a new user for that role, he seems to have the ...
0
votes
1answer
567 views

How do I add images in pager for views nivo slider?

I am using Views Nivo Slider for displaying a slideshow of banner images on my site. And i wish to show the pager in the form of images. I tried using Image pager in views slideshow and it worked ...
1
vote
1answer
660 views

How to load field value to custom form?

I'm using Drupal 7 for my website. I created custom settings page with custom form in it, but the problem is I don't know proper way to load inserted value from database to my form after saving it, ...
2
votes
1answer
683 views

How to check in a rule if the data from a field collection has changed?

I want to add a rule (using the Rules module) for printing a message after changing a field in a field collection. The field collection consists of the following three fields: Reference to Version (...
0
votes
3answers
2k views

Implement Menu block hook function hook_menu_block_tree_alter() to add/change/remove classes

I have installed the plugin Menu block and I am very happy with the result, but I'd like to change some classes in the structure. This is what I get right now: <div class="content"> <ul ...
1
vote
2answers
2k views

“File (Field) Paths” and “Media” modules: files not saved in the intended folder

I'm trying to use both the "Media" module (1.4) (to manage uploaded files) and the "File (Field) Paths" (to keep the uploaded files organized in various subfolders). Basically, I have a content type ...
1
vote
1answer
827 views

How I can intercept an image field upload and validate it?

I have a content type with an image field. I need to validate this field because I need to check if user upload a real image or only a file with image's extension (like jpg, gif, png etc). I have ...
2
votes
1answer
608 views

Conditional fields not working with hierarchical select module

Case: I am using the Hierarchical Select module for allowing users to choose taxonomy terms from a particular vocabulary. Based on the chosen terms (deepest level), I want to display a field using the ...
2
votes
1answer
29 views

How to dynamically make a field visible? [closed]

I'm trying to render a field based on a select value. However I couldn't succeed for now, so here is what I tried: I created a content type with a select field (field_type) var_dump($form['...
1
vote
1answer
561 views

Address book problem when user edit the billing address

i just installed commerce address book module but i noticed that when authenticated users try to edit their billing address they have some options in the bottom that seems very strange and not ...
3
votes
1answer
587 views

Autocomplete term widget (tagging) - Insert as child

Is there a way to insert taxonomy terms as child of a parent term with the auto complete term widget? I have found several modules such as "Content Taxonomy" or "Hierarchical Term Reference ...
2
votes
1answer
584 views

How to import multi-value fields into profile2 using the Migrate module

I have users each with a profile using the profile2 module. I am using a cookbook based on the Migrate framework to create the users and import profile data. Sample CSV data would be: "member_nr","...
0
votes
2answers
2k views

Drush MAMP not working

I'm running with a big problem for hours now and it's driving me crazy, maybe one of you already know the answer. Drush seems to not want to work on my OSX (10.8.5) with MAMP (3.0.5). When I execute $...
0
votes
0answers
20 views

Mobile application version

I've created a website in Drupal 7. My client would like an app version of the website. I'm looking at DrupalGap. Is this the best way to do this. If I use a function like DrupalGap do I need to ...
0
votes
1answer
669 views

Does #AJAX work on the body field?

Does the #AJAX FAPI property work on the body field? I've got it to work with things like submit buttons and textfields such as the title. When I alter the node edit form, and attach an #ajax array to ...
0
votes
2answers
451 views

How do I change the theme?

I'm using the Dashboard module that comes with Drupal core. For roles that are not administrator, it is empty (permissions are set). I'm pretty sure it is because the theme isn't viewable. (Other ...
0
votes
1answer
18 views

HTML tags after umlauts causing premature header sending - CK editor

I'm maintaining some old Drupal 7 site (not created by me) and since couple of months ago it started acting strange (I didn't make any change on site): Inside some content type there is a formatted ...
0
votes
1answer
897 views

Help with $base URL path in settings.php

Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content) I want to remove the drupal folder from the URL ...
2
votes
2answers
7k views

Building a dynamic menu based on taxonomy terms

I'm new to Drupal and I am currently using Drupal 7. I need to know if what I am trying to do is even possible. If so I am going to need some pointers on how to implement it. I have two vocabularies: ...
0
votes
1answer
771 views

Import soap webservice xml to node with Feeds?

I have a soap web service which requires authentication to access its various function. I want to call one function of this web service and import that XML to node in Drupal with feeds module. I am ...
0
votes
1answer
468 views

Image Styles not creating on one custom style only

I've run into this issue where we have created a custom style (emailthumb) which is to be used when sending out email newsletters via simplenews. The thumbnail is based on 'thumbnail' style but is ...
3
votes
2answers
1k views

Views autocomplete exposed filter

I am using autocomplete exposed filter in views for country/city with depth which is working fine but there are many identical city names. When user types XYZ he sees 2 entries: "XYZ" "XYZ" and has ...
0
votes
3answers
589 views

Add an image to a line item in drupal commerce

my client ask a site to sell printed canvas so I need to allow site users to add at least one image to every drupal commerce line item. There is easier to start from a drupal kickstarter ...
4
votes
2answers
560 views

How to set Permission based on roles for Views Data Export

Using views data export module, I set the permission for different roles in the Data Export in Views like: But I can still see the Export button for all users in front page. However if the role doesn'...
1
vote
1answer
743 views

File Transfer failed, reason: Unable to change to directory

I'm work on updates modules in my drupal site. When i access localhost/authorize.php after linked in config, i recieve this: Update failed! See the log below for more information. Your site is still ...
0
votes
1answer
722 views

Add classes to programmatically added fields

I have programmatically created a few content types and fields for said content types in a module I'm building, but I need to add classes to said fields. So if I have a text field called "...
3
votes
1answer
2k views

How can I show only first level terms on a dropdown taxonomy exposed filter?

I have a 2 level taxonomy tree: Countries and cities. I also have a view of content, all of which are marked by first level terms (countries) of that vocabulary. My taxonomy tree is like that: ...
2
votes
1answer
639 views

Language switcher shows wrong language on front page after detection by browser settings

Content and interface are displayed correctly but the language switcher shows the default language when the language negotiation is set to these options: URL (language prefix) Browser Standard Means:...
1
vote
3answers
1k views

How to create charts in Views using Google Analytics data?

I'm trying to generate charts in Views using Google Analytics data. I have the Google Analytics Reports module installed, but this module doesn't allow aggregation of data which make charts very ...
1
vote
1answer
751 views

How do I remove the active class in the main menu?

One item in the menu has sub-items that point to the same page (just with different arguments) ex: Products - List item 1 \products?pid=1 - List item 2 \products?pid=2 - List item 3 \products?pid=...
2
votes
1answer
1k views

Show parent items in hierarchical facet display

Taxonomy terms are configured as such: Parent category 1 - Child category 1 - Child category 2 Parent category 2 - Child category 3 - Child category 4 "Empty facet behaviour" is set to "Do not ...
0
votes
2answers
707 views

Social Field Module: Icons not showing up in options

Trying to use Social Field Module for general user Profile. Followed through module text but no icons appear to show up for the module in either the Field itself or from an End-user logged in ...

1
2 3 4 5
529