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
0
votes
1answer
478 views

Drupal 7 Webform Components Related To Individual Nodes

I am attempting to create a decision making "questionnaire" in Drupal 7. I am currently using the Webform module to create the questionnaire. The questionnaire (webform) will create a list of related ...
0
votes
1answer
373 views

Sorting Views by Day and Month only

For a Birthday field using the Date module, Views sorts it by year. This puts the dates in basically random order once you format it to display only the month and the day. Could it sort by day and ...
0
votes
2answers
653 views

How to display all children on parent node for custom content type?

I have a custom content type, let's call it 'parent'. I have another custom content type, let's call it 'child'. I created a template file where I can display the 'parent' content type fields any ...
-1
votes
0answers
9 views

Render form elements by ajax

This is working fine, but i need to render too many fields inside in ajax call with states check to show and hide fields. So i m using '#states' but it is not working, in following ajax call it gives ...
0
votes
1answer
459 views

How do I insert a user picture's thumbnail on the “Submitted by” field?

I want to insert user picture's thumbnail on "Submitted by" field, which is displayed in teaser such as the following. Submitted by [some_user] [someuser picture's thumbnail] on xx/xx/xx How do I ...
0
votes
1answer
506 views

Different front page template for different domains

I have Drupal 7 installation with the Domain Access module. I need to have different page--front.tpl.php templates for some of the subdomains, for example: www.example.com should have one type of ...
1
vote
2answers
750 views

Add conditional javascript from CDN (external library)

I know it has been discussed here several times, but: Is there a way to include conditional JS from CDN in the head section? My goal is to somehow use drupal_add_js, external. That will stick in the ...
3
votes
1answer
590 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
492 views

Having issues getting solr search facets to appear on non-search pages

I'm using the solr search integration module with facet api on drupal 7 and I'm having issues getting the facets to show on non-search pages. I've checked the box for non-search pages and added a few ...
0
votes
1answer
578 views

Gmap not displaying

I have Gmap and Location module. I have created a content type and also added a field location with term reference(Taxonomy term). I have just added a content and selected one location. But I can't ...
0
votes
2answers
2k views

Show subterms in a page

I have two categories and each one has subcategories. I put the parent categories in a menu. What I need is: when I click a parent category its subcategories should be shown in a new page. How I ...
1
vote
0answers
287 views

Mime mail system attaching two files [duplicate]

I am trying to send pdf through using mime mail module + mailsystem module + smtp authentication module function send_mail(){ $to='xx@gmail.com'; $subject='xxxx'; $message='aaaaa'; $from='x123@gmail....
0
votes
0answers
503 views

Custom content type which is a check list [closed]

I am trying to build a new project in which, as administrator user, I can easily add or edit a checklist, used to track a day's job, which should be used by users when registering their account. This ...
1
vote
3answers
2k views

How to get total number of results in Search API View?

How can I get the total number of results on a Search API View that has a limit of 5 results to display? Some more info: I have to make a bit more complex search where several attachments are ...
0
votes
2answers
726 views

Custom Image Background in Block

I tried Dynamic background module but it seems it's not what I am looking for. Is there such a module that will allow me to change the background for a certain pages or group of pages that works the ...
0
votes
1answer
513 views

Cannot use feeds to import into data tables where the primary key is multiple

I am using Data Module to create tables in Drupal. Now, I need to import some data through CSVs, for this I want to use Feeds Module. My table consists of more than one primary key i.e. a group of ...
4
votes
1answer
660 views

Import a node with its path alias

I'm using ne-impot and ne-export with drush for importing and exporting nodes. When exporting, as part of the uuid module, the URL alias is included with the export. However, when importing a node, ...
0
votes
1answer
632 views

The path alias doesn't work on https

When I visit http://www.example.com/node/439432 on my site, it correctly redirects me to https://www.example.com/myalias.html. However, When I try to visit https://www.example.com/node/439432, I am ...
0
votes
0answers
13 views

Drush issue duplicating includes/ directory

Using drush either globally or with a composer installed version, I get this double includes showing up in my fatal error (/includes/includes/): include_once(/srv/www/htdocs/sites/drupal/includes/...
0
votes
2answers
677 views

How can I set default value (prepopulate) for field in views exposed filter?

I've tried to use solution from Can I prepopulate an exposed filter text field? but failed. Cache clearing does not help. function mymodule_form_alter(&$form, &$form_state, $form_id) { if ($...
1
vote
3answers
632 views

Advice on how to fix Workbench Moderation error messages

(n00b drupal person) I seem to be suffering the problems described in https://drupal.org/node/1966908 and https://drupal.org/node/1966920. Basically I have installed the following: drupal-7.26.tar....
0
votes
2answers
576 views

Cannot install core in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
0
votes
1answer
632 views

CURDATE() return wrong result

I have write sql query in drupal looks like this. Let's assume today's date is 2013-07-24 and total of node is 4. $query = "SELECT COUNT(*) amount FROM {node} n LEFT JOIN {...
2
votes
1answer
478 views

Arrange formatted fields in Views row using a template

I want to render the rows of my “Recent content” Views page using a template in order to subdivide the rows into multiple divs, freely move around the rendered fields within these divs, and apply ...
3
votes
1answer
1k views

Permission rebuild fail

My Drupal 7 site is upgraded from Drupal 6. When I install the Domain Access (not installed with Drupal 6) module, I need to rebuild permissions. I tried rebuilding them from the administrative pages,...
1
vote
1answer
536 views

Frontpage is a menu item…title won't change

When I access site via / or /fp, I always get 'Home', this only happens for the home page...How can I change the title? $items['fp'] = array( 'title' => 'Front Page', 'page callback' => ...
1
vote
2answers
1k views

How do I render form fields in my custom.tpl.php template?

Here's my dilemma, I built a custom form-based module that allows a user to vote on a future conference location but I'm having a issue printing or rendering my form fields to have them display in my ...
0
votes
1answer
528 views

Programatically Submitted Form With 'file' Field Throws Notice

This seems to actually be a problem in Drupal itself. In /modules/file/file.field.inc the function file_field_widget_form has a line like this near the bottom (just before the return statement): $...
0
votes
2answers
929 views

Decryption failed because the HMAC could not be validated while decrypt

I am using the Encrypt module to encrypt some of user object data. I can encrypt data, but while decrypt it, I get the following error: Decryption failed because the HMAC could not be validated ...
0
votes
1answer
579 views

Create bulk nodes - PDOException

Problem I'm trying to create multiple nodes at once using a CSV file for the data. However my script only creates the first 25 before it throws the following error. Any ideas what might be happening? ...
2
votes
1answer
707 views

Field with unique and auto-increments values

I have a content type that in one of their fields need a value that is unique and auto-increment. There are several obvious solutions: Use the node id that is unique and auto-increment. The Serial ...
0
votes
2answers
1k views

RewriteRule causing internal redirect limit error

I am trying to server a static HTML site from /sites/default/files/staticsite and make it available via a subdomain. I'm hosting the site on Acquia Cloud, and their docs describe Maintaining a static ...
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: ...
0
votes
1answer
538 views

Is it possible to change the form submit handler from within a validate handler (need to redirect to another form depending on values entered)

I have an initial webform (based on 3.x of webform module/Drupal 7) that needs to redirect to a second form if yes is specified in a yes/no choice. Otherwise if No, the first form should submit ...
0
votes
2answers
578 views

ShareThis facebook posts previews are perfect, but posts empty images

I have been having problems with facebook integration, and I know there are lots of other posts about this as I've been looking through lots of them. I see plenty of information about FB picking the ...
2
votes
1answer
555 views

Rule to send an e-mail with the URL of an uploaded attachment after node change

I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set ...
0
votes
1answer
631 views

Views Bulk Operations Checkboxes check on click

I do search for a specific option in bulk operations. For now, when I click somewhere in my row, the checkbox for the bulk operation gets selected, but I want a user to directly click on the checkbox. ...
1
vote
2answers
404 views

Pass data to hook_entity_insert

How can I pass data to hook_entity_insert() given that the arguments it takes are fixed? I'm writing to the database during entity save, and need to be able to pass some data in this hook.
1
vote
1answer
504 views

How do i generate token for each user they submit my custom form?

I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission. I am able to send the mail to the user ...
0
votes
1answer
586 views

How do I create a file download popup form?

I am new to drupal, and I want to create a popup form with with form fields for name and email, and a buttom to download and to close the popup. When users click on the download link, the popup form ...
4
votes
2answers
3k views

Using Media, views, and colorbox to create a image gallery

Currently I am running in D7 with the following modules: Media 7.x-2.0 Views 7.x-3.7 Colorbox 7.x-2.4 I am trying to create an image gallery using these modules with the following steps. Please ...
0
votes
1answer
586 views

View modes are stuck on default view

I had my site for quite some time and just started to use the display suite view modes feature for changing the displays per node. I made new view modes and tried to change them for my nodes, but it ...
2
votes
1answer
684 views

RSS not appearing in meta tag

An RSS-feed on my site doesn't show up in the HTML <head> as it is supposed to, which makes it very difficult to find. Here's my situation: A view is displaying the latest blog posts. This view ...
0
votes
1answer
565 views

Permissions to edit only the Status of an order

I have created a role called "Order Manager", he should be able to View all the orders. Update the status of any order. Not be able to edit(can edit only the status field, nothing else)/or delete any ...
1
vote
1answer
919 views

CKEditor table td style not showing in frontend

I use CKEditor (WISYWYG editor) to edit text and HTML for my Drupal project. I want to edit an HTML table and try to horizontally align text in a table cell <td> to the right. My steps: select ...
3
votes
2answers
2k views

How to prevent a PDO exception when using Rules to Set a data value after saving new content?

I need to write a rule that edits some elements of the node, as soon as it is created. Unfortunately Drupal doesn’t like that and crashes whenever you try to save the node within a rule that was ...
0
votes
1answer
15 views

invalid token: [node:title] when Token module installed

I'm on Drupal 7.80 and a Drupal newb so help with how to debug as well as things to try appreciated. Taking over a Drupal install that might have some outstanding issues. Problem: It looks like 'core' ...
0
votes
0answers
11 views

Drupal 7 taxonomy term fields not handling content filters

Image Resize Filter doesn't work with taxonomy term description. Resizing works fine in nodes and blocks, but not in views for taxonomy term. I'm loading term in my view template. And render its ...
1
vote
1answer
884 views

Render Custom Menu Block from Menu Tree Array of Links Programmatically

Here's what I have: A custom menu (side nav) that mimics the main/secondary menu tree which shows the entire subtree of the root menu item (Dine, Play, Stay) you're under. This sidenav can be ...
0
votes
1answer
810 views

How to redirect to modal?

I use the module "Bootstrap Login Modal". How to redirect /user/login to <a href="#" data-toggle="modal" data-target="#login-modal"></a> all over the site ?

1
2 3 4 5
530