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
21 views

How to show or hide some content on a node view using Page Manager based on the url destination?

After certain fields have been set on the edit node form and saved, I don't want the node author to change these anymore and therefore I have created a new variant with a response code "301 permanent ...
0
votes
1answer
477 views

Ajust the position of autocomplete fields

I working with the theme base bootstrap and my problem is that in autocomplete fields it's a bit offside of position, see the screenshot. How fix this ? I need this more to the left and below the ...
0
votes
0answers
5 views

How to flag a node and take the values from a node in a block and set these in fields of the flagged node

I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to ...
0
votes
0answers
28 views
+50

How to set an exposed filter to enable current user to view nodes that he has not commented

On my D7 site I am trying to create an exposed filter where current users would choose whether he wants to see all nodes, or only those that current users have not commented. Tried adding 'Comment: ...
0
votes
2answers
65 views

Node only accesible by path alias

I was wondering if it's possible to make nodes without path alias not accessible. By this I mean that visiting /node/$nid/ users will not be able to see its content, but if that node has an path alias ...
0
votes
0answers
17 views

GoDaddy does not allow me to install modules and themes

I just signed on for the Godaddy economy shared hosting plan. I have installed Drupal via the cpanel and my website in up and running, but I see that this drupal installation does not offer any links ...
0
votes
1answer
341 views

Inheritance value from the exposed filter

I've got content-type with two double-valued fields field_price1 and field_price2. There are interior names. I've also got page view (its machine name is search) displaying contents. I've got search ...
0
votes
1answer
559 views

Programmatically translate taxonomy terms

I have a vocabulary of taxonomy terms I get through taxonomy_term_load($tid); and displays in views page. How do I get and display the terms depending on the user's language?
0
votes
1answer
554 views

Symbolic links and the file_scan_directory() warning

I wanted to use the following symbolic link in my root directory: $ ln -s /data1/public/cases/ DownloadData Such that when users go to www.example.com/~user/DownloadData/file they are rerouted to /...
3
votes
1answer
13k views

Hook form alter for select list

I tried to convert a text field filter for title into a select list filtered by content type using hook form alter: function myhook_form_alter(&$form, &$form_state, $form_id) { if($form_id ...
2
votes
1answer
520 views

Can I add text to a form file upload field?

Is it possible to add text/markup to a file upload field similar to the image below? I thought that something like $form['actions']['edit-field-upload']['#prefix'] = 'First'; in a hook_form_alter ...
0
votes
1answer
494 views

Custom content type which is a check list

I am trying to build a new project in which i as admin can easily add or edit a checklist which is used for tracking a days job which i want any registered user to fill out . This is possible either ...
0
votes
2answers
498 views

How to add destination parameter in hook url_inbound_alter

Hi I have used hook_url_inbound_alter to alter the URL. When I access user/%/order anonymously it should redirect ti user/login. I have used below code function module_url_inbound_alter(&$path, ...
0
votes
1answer
381 views

if empty statements in views fields or field templates

Normally, my situation is easily solved using views rewrite feature. However, in this case I am unable to use views rewrite because I have data attribute tags in the field wrappers that are stripped ...
47
votes
7answers
40k views

How to change the length of field settings?

I have set once to a website a lenght limit to a field. And now the client wants to put more characters to that field. I cannot change the maximum size from Drupal because I get the following error ...
2
votes
2answers
438 views

How do I send notifications for followers of a group when group content is updated?

I want to build such functionality that allow the user to follow the other users, and when the followed person is updating the information, the follower can get notified for what they are doing. I ...
1
vote
1answer
525 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' => ...
4
votes
1answer
660 views

Unlimited field collection pagination in node edit page

In my node I have a field collection which is set to unlimited. How to enable pagination for node edit page, where all items from that field collection are displayed? For display there are couple ...
0
votes
1answer
488 views

Add fieldset with add more button using ajax

I have one fieldset like, Education Qualification: 1. School, 2. College, 3. Course, 4. Year (these are the fields which will be in this fieldset) Now I want to do "Add more" button under this ...
2
votes
1answer
472 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 ...
0
votes
0answers
20 views

After login I get blank admin pages

I have a D7 site up and running and working fine. Today I logged in to update some content, but I saw that the admin pages just show the system messages about necessary module updates and that's it. I ...
3
votes
1answer
642 views

How to add a class to the <a> link elements within a Multiple Values field in a View?

I have a Views field (in this case, taxonomy term references) with Multiple Values set to "Display all values in the same row", using the Link formatter and a seperator. I want to add a class to each "...
0
votes
1answer
38 views

How to load a internal page content within div? [closed]

I have following code in a basic page on drupal 7 <h2 id="tabs">Test Title</h2> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="content/test" ...
0
votes
1answer
344 views

file_field_widget_form error when programatically creating nodes

I have a simple routine which I use to create nodes. The logic is something like this: function make_node($node_type, $field_data) { foreach ($field_data as $k => $detail) { $field_key ...
0
votes
2answers
448 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 ($...
0
votes
1answer
481 views

Multiple blogs per user, each with a blog profile page

I'm trying to to create a site where users upon admin approval, can have multiple blogs, typically differentiated by language. Each blog should have a profile/landing page specific to that blog. I ...
1
vote
3answers
2k views

Adding an address to a node's address field programmatically

I am presenting a form to receive an address. I want to take the data and add it to a node that has an address field (from the address field module). Can someone point me in the right direction on ...
0
votes
1answer
739 views

Custom form validation

I've created a custom module for populating a database and now I need to apply form validation to this form. I want a few different validation things to happen. I want to limit specific entries on ...
2
votes
1answer
26 views

Emoji works in a site but not in the other site on the same host

I am trying to enable emojis following Multi-byte UTF-8 support in Drupal 7. I have added the following to the settings.php file. 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci'...
0
votes
0answers
20 views

Warning: Illegal string offset 'theme_hook_original' in theme() (line 1094 of /var/www/html/includes/theme.inc)

We are trying to implement a theme function in a custom module in Drupal 7. our requirement is to display custom HTML output. we have inserted below code in "mymodule.module" file. function ...
0
votes
1answer
362 views

template.php hook to add variable to view

I'm trying to include the total count of a given node type into a view tpl.php file. I would like to set this variable in the template.php file, so that it is available in the tpl.php file (that way I ...
0
votes
1answer
450 views

Displaying parts of main menu in separate blocks

I need to display my main menu in separate blocks: the first sub-menu in one block, and the following two sub-menus in another block. I'm using Drupal's native menu module and also the nice menus ...
0
votes
1answer
352 views

What invokes Bootstrap overrides.css?

I have a purchased theme that I've cloned, to which Bootstrap is set as the base theme. I've done the standard rebranding procedure of renaming all of the files and functions to match the new theme ...
2
votes
2answers
32 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
0
votes
1answer
522 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
1answer
478 views

What does it mean “Rebuilding” in a feature? Can it be resolved?

I did some changes in my local environment, then I updated the 'feature'. When I try to deploy the change to another environment, but before I can start the 'revert' operation, some parts of the ...
0
votes
1answer
457 views

Show node body fields for entity reference checkboxes widget?

I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
0
votes
1answer
568 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 ...
1
vote
1answer
489 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
505 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 ...
0
votes
2answers
595 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
0answers
9 views

Content corrupting when reverting a revision

Our website is powered by Drupal 7 and have a bootstrap based rotating carousel on the home page, which has a link on each slide to a different page. This is powered by the Bootstrap Carousel module (...
1
vote
1answer
454 views

Infinite Redirect Loop with PURL and spaces_og

I created a calendar feature for organic groups, and tried to enable it in a group with spaces_og. The page refreshes saying changes have been saved but the feature is still disabled. In the logs, ...
0
votes
1answer
517 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
0answers
17 views

Display a table after form [closed]

How display a table and some html content after form in drupal 7. I am trying to build something showing in the image. Kindly provide some tips to build this.
1
vote
2answers
346 views

How do I get only node IDs from the search results?

I'm using Search API Solr with custom searches in code, but I want to find a way to limit the return results to only the nid to save on bandwidth with our third-party solr server. I've tried $query->...
0
votes
1answer
701 views

Error message “responsive-utilities.less” not found

I did set-up the sub-theme with less for the Bootstrap theme. Following is the file structure, Installed less using(Instruction followed from here), $ npm install -g less Then ran a following ...
0
votes
1answer
456 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
3answers
573 views

receiving incorrect url from amazon s3 module

I am using drupal 7. I have installed amazon s3 module and its dependencies. I have created a bucket for saving my files on amazon server. Everything went good.. But when i try to get the path for the ...
0
votes
1answer
947 views

View field with JavaScript code in it

I have content type which has text field. Each node has its own javascript code which is set in to the text field. Text field is PHP Code format. When I add this field to Views block site load ONLY ...

1 2 3 4 5 526