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

External URL Redirect Breaking Image Links

I was recently hired to manage an existing Drupal 7 site (built with an Omega subtheme) and am doing my best to ramp up quickly. Unfortunately, I do have some fires to put out immediately and could ...
1
vote
1answer
936 views

Programmatically load and submit the user form

I want to programmatically load the user profile form for a particular user and re-submit it without changing any of the existing values. The reasons are complex but I am dependent on gathering data ...
0
votes
2answers
2k views

Insert values into a node fields with entity wrapper

I've tried to use entity wrapper to create a new node and insert the values into the fields, but I get an error. <?php $values_entity = array( 'type' => 'anuncio', 'uid' => $userid, ...
0
votes
2answers
571 views

Adding workflow to custom content types

I am trying to assign a workflow to my custom content type, but i can't find the option to get this working. Is it a bug or maybe just not part of the workflow module?
1
vote
1answer
473 views

Passing values to a view block

I have a page that contains 4 separate blocks, from the same view, Items block 1 - this contains a list of item titles Items block 2 - this contains a different list of item titles Content block 3 ...
1
vote
1answer
709 views

How to delete a scheduled task using Rules Scheduler?

I use the rules scheduler module (D7). So far all fine. What I use it for: a user registers with username and email this users then gets 4 emails over the next four weeks, sent by the scheduler BUT:...
1
vote
1answer
13 views

Having required (*) show up on the component itself and not the label

I'm creating a webform select options component and I want to hide the label. Because this is a required, it needs to display with the red asterisk that the field is required. However, the asterisk ...
0
votes
4answers
882 views

Translate homepage meta Title and description

I have a Multilingual Drupal 7 site using i18. But how do I get my homepage meta Title and description translated?
0
votes
2answers
547 views

How to link taxonomy term with current loaded NID?

I want to link taxonomy term with current loaded node I am using $nid = arg(1); $term=taxonomy_term_load($tid) print $term; but noting happened. Please tell what is the correct way
1
vote
1answer
802 views

How can I make a template for a product type in Commerce?

I want to be able to write my own markup for the fields (see image below) of each product type – how do I do this? My main reason for this is that I want to group them with my own HTML rather than the ...
0
votes
1answer
299 views

Multisite and apple touch icons

In a typical multisite D7 installation, I would like to set up apple touch icons. So that, when an agent requests http://example-1.com/apple-touch-icon.png then he receives the image appropriate for ...
0
votes
2answers
772 views

How to do something BEFORE a view is updated via ajax submit button?

I have a view with exposed filters and Ajax activated. I would like to validate my exposed filters values before my view is updated by the submit button. The following code works without Ajax, but ...
0
votes
2answers
1k views

Redirect Using Rules Based on Account Role

Further to this previous question, https://drupal.stackexchange.com/questions/1790/redirect-users-after-login-depending-on-the-users-roles I am trying to accomplish a similar redirect on a D7 whereby ...
2
votes
1answer
488 views

Feeds GUID - issue while modifying and importing the manually content type data

I have a scenario like this: I am using Feeds Importer to import one content type data. I am using GUID field as the unique field. Also, I am exporting these all the nodes of this content type using ...
-1
votes
0answers
12 views

Personsalised adsense ads [closed]

I'm trying to figure out how to serve personalized ads on a Drupal 7 site. I'm currently using the Adsense module, but it doesn't support personalized ads. It also uses a tag like [adsense:....] you ...
3
votes
1answer
1k views

What is the difference between a JOIN and a RELATIONSHIP in hook_views_data_alter()

What is the difference between these two as implemented on hook_views_data_alter()? Why choose one over the other? I did notice that in setting up a relationship between mytable1 and users tables, ...
1
vote
1answer
750 views

What are best practices for creating node relationships?

In Drupal 7, what are the best ways of creating relations between nodes? Say I have a number of articles about famous writers. I want to build an alphabetical list of them using Views. As writers ...
0
votes
2answers
604 views

Add class to all labels in a comment form

Pretty straight forward. For every label within a comment form, I wish to add a particular class to it. Using only functions in template.php, in Drupal 7, how can this be done? If it can't be done ...
2
votes
1answer
540 views

drush perm-grant gives “The drush command 'perm-grant' could not be found”

I am using drush -u 15 perm-grant --roles="site administrator" but the command returns: The drush command 'perm-grant' could not be found. any ideas about that? according this documentation the ...
1
vote
1answer
786 views

How to get taxonomy translated when creating a new node in a different language than the interfaces?

Configuration: I set up a multilingual site with Multilingual support: Enabled, with translation so I'm creating a new node for each language. The taxonomy term is set up with the Translation mode: ...
1
vote
2answers
986 views

Views contextual filter - Contains search with taxonomy field

I am searching with taxonomy terms, is there a way to do the search with anything that contains what i am searching for will be returned? For example if i search Amer nothing will return, but i ...
3
votes
1answer
670 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
1answer
5k views

Best way to use image styles with Media and WYSIWYG?

Up to now, I've been using the Insert + WYSIWYG + CKEditor to insert images with specific Image Styles in a wysiwyg interface. This works well, and it's very easy to select and apply image styles (...
0
votes
3answers
461 views

How to create simple confirmation page?

I want to create simple confirmation page. It means that after user change his email then he gets confirmation email with link to page. This link contains token. This link should open page for user ...
0
votes
1answer
747 views

No 'Div Container' button in CKEditor

I've got CKEditor 4.5.0 working on a Drupal 7.42 install. I'm now trying to find a way to wrap more than one HTML element inside a DIV (I want an image and caption to be wrapped in a single DIV). On ...
0
votes
1answer
23 views

How can I set the site root page to a landing page instead of user login?

I'm using a custom bootstrap 3 theme as my default theme which sets the user_login page. When I go to the root of my site, this is the page that appears. How do I change the root of my site to display ...
1
vote
1answer
170 views

date_popup + theme = infinite loop

I'm trying to create a templated form including date_popup field in a custom module. There is a very basic example : mkl_variousTest.module ( dependency : date_popup from date API ) <?php //...
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
1answer
617 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 ...
0
votes
1answer
545 views

Displaying titles of collapsed menus

I'm currently converting a mock-up and I need to display four menus in a list, the first two are expanded, and I need to display both the titles and menu items, and the next two are collapsed, so I ...
1
vote
2answers
667 views

How to add parameter to URL when passing ids as arguments to a page?

I have a view with an action Pass ids as arguments to a page where I need to add to the link. There is a parameter which I receive in the URL. I can print the parameter in the view, but I am not able ...
2
votes
1answer
648 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. ...
1
vote
1answer
30 views

Suggested template file is not working for Custom Search's template

I have installed Custom Search module for my drupal7 setup. I am trying to modify template files for search-result and search-results. By default its using template files from contrib module's theme ...
0
votes
1answer
23 views

How to pre-populate a text field when creating a new node?

I am using Drupal 7. I have a Content Type called Request. I have two fields "Manager Name" (type Text) and "Manager Email Address" (type Email). When the user creates a new node of type Request, I ...
0
votes
1answer
565 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 ...
0
votes
0answers
48 views

Module configuration screens not appearing

Update 2020.05.29: I've rebuilt the whole of my development site from the ground up, and I've just run into this issue again. I set up git on my production site and cloned the file system (now Drupal ...
1
vote
1answer
639 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 ...
5
votes
3answers
737 views

Why Content Path cannot be used to sort a view?

Using Views with Drupal 7, how can I use the content path to sort a result table? I have node title, created date and path as fields for a view. The first two fields have the checkbox to make them ...
1
vote
3answers
1k views

How do I update a user profile with entity_metadata_wrapper()?

I got an error while updating user profile data such as name,password and email. I am using entity_metadata_wrapper() for processing update. exception 'EntityMetadataWrapperException' with message '...
0
votes
2answers
533 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
822 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'), '#...
0
votes
3answers
832 views

Floating Block in drupal

I'm using Floating Block module in drupal 7 to fix a block after scrolling, but how can I tell the block do not fix when you see the footer section?
1
vote
1answer
585 views

How to copy select list value from a webform submisison into select list field new node?

This is the scenario: A webform with the following fields Question -> Textfield Category -> Select options (Listbox) Listing vocabulary HETCAT A content type Question with these fields Title ...
0
votes
0answers
16 views

Change user expiration date in Opigno LMS

I have installed Opigno module on Drupal 7.x and configured all classes and courses. What I want is modify the date of user expiration through a form I set up. The date user expiration is a plugin in ...
0
votes
1answer
2k views

Captcha session reuse attack detected error message in form with anonymous user

I am experiencing a problem with the Captcha module 7.x-1.3 version (under Drupal 7.39) I don't use webforms My form is a simple Contact form My form does not contain any AJAX field My form does not ...
3
votes
2answers
619 views

hook_menu create a URL/Menu Item

I'm trying to create a page through hook_menu so I can add my custom block with context instead. function my_module_menu() { $items['my_page'] = array( 'title' => 'my_page', '...
-2
votes
3answers
562 views

How do I get the value of a persistent variable with `variable_get()`?

How do I get the value of a persistent variable with variable_get()? Does the function save the value on a database table or somewhere else?
2
votes
2answers
858 views

How to get child terms based on parent terms between two different taxonomies

I have created two vocabulary Program Topics I want to load the topics based on the program selection. It looks like category and subcategory. I created some program like java, .net, PHP and I ...
4
votes
3answers
1k views

Redirecting a registration link in logintoboggan

I've got a register link and a log in link that is augmented by logintoboggan. All I want to do is redirect the register link from the user account form page to a new page I've just made. It seems ...
1
vote
1answer
383 views

Google Store Locator

I have installed this module on a clean Drupal 7 installation. But I can't activate the Google API. I have added the API key in the GEOCODE field. But I still get the error. Also I got a blanc screen ...

1
2 3 4 5
528