This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, and not used just to report "I am using Drupal 7 in my site."
0
votes
0answers
2 views
How do you render a View with arguments using a Computed Field?
I have a computed field and i want to output a View's - block display with arguments passed into it. Can someone provide me with an example code of how to output a view with arguments?
thanks!
0
votes
3answers
10 views
How to track site search with using Google Analytics without installing additional modules?
I need to enable the tracking of site searches in Drupal 7 using Google Analytics without installing the additional "google_analytics" module.
So far, I find some info (some previous question in this ...
0
votes
1answer
9 views
See what database a site is connected to
Is there a page in Drupal 7 (or a module) that will show me what the name of the database is that the site is pointing to?
I know this can be done via settings.php, but I am setting up a build ...
0
votes
0answers
6 views
Lazy Loader and Views Infinate Scroll conflict
I really like the Image Lazy Loader. The way it makes images fade in at the bottom of the screen is dead sexy.
I also like Views Infinite Scroll. I have to display hundreds of content previews, and ...
0
votes
0answers
14 views
Multiple upload on a media field with media browser [duplicate]
I'm using the http://drupal.org/project/media 7.x-2.0 and I will like to be able to upload more than one image/media at the time.
I know about https://drupal.org/project/plupload but I just need ...
1
vote
1answer
21 views
How to nest form into another form?
I have 2 modules. Let's call them Publisher and Publication for discussion's sake.
Publication module requires Publisher module. Publisher module provides form to edit publisher's data. Publication ...
0
votes
3answers
26 views
2nd block not showing up in D7
I'm building a module with several blocks. But only one is showing up in blocks list.
Calendar shows up in block list but could you see why I cant see my 'frontdoor' block ?
function ...
0
votes
1answer
20 views
How to add Google Analytics per theme?
Is there a way to add GA per theme. The reason for it is I am using themekey to switch the theme for mobile users.
I have read that it is possible to add more than one tracking code on a site but ...
1
vote
0answers
18 views
How to create database for testing
I'm implementing http://phactory.org/ to get away from the heavier aspects of test data creation. One of the prerequisite items for this is to start with an empty database, with proper schema.
I ...
0
votes
0answers
7 views
Apache solr + Facet API, can I filter with node title?
I am trying hard to find a text facet to filter the results by node title. Is it possible?
0
votes
0answers
20 views
Breadcrumb not displaying properly in Drupal 7
I am using the Menu breadcrumb module in my theme. My menu structure is like this:
Company
->aboutus
->infrastructure
Careers
->newjobs
->applyjob
When I click ...
0
votes
1answer
23 views
Showing blocks by url, when nodes have multiple paths
I know that having multiple path aliases to a single node is discouraged, but it is a situation I have to deal with.
My node is accessible via /news/node-1, /baseball/news/node-1 and ...
0
votes
1answer
6 views
Some of my Panel content is missing for anonymous users. What went wrong?
I've set up a landing page panel with two items in it, a content page with a welcome message and a view showing certain content. It works great, but when I look at it as an anonymous user only the ...
0
votes
1answer
15 views
How to upload multiple images to Ubercart product pages via FTP?
I have a few thousand products that I plan to upload to a D7/Ubercart website and each one will have two or three images associated with it. Is there a way I can just dump all of those images onto the ...
0
votes
1answer
13 views
How to pass taxonomy reference field data into a views reference contextual filter arguement with PHP code?
My content type has a taxonomy reference and a view reference field. I currently want to pass the Term ID as an argument into my referenced View via a Contextual filter Taxonomy Term. If someone can ...
0
votes
1answer
19 views
Set trim_length of field through UI for blog entries
I am using the Blog module, but don't like the 600 character trim length. I want 2000 char.
But, I can't find out where to change this in the admin console.
I was able to update the trim length ...
0
votes
1answer
18 views
Regarding content slider on mobile screen
I am trying to make a Drupal 7 desktop site into a responsive one. There is a view of type node listing the node title and image in a grid format on front page. I want that on the mobile screen ...
0
votes
0answers
7 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 ...
0
votes
0answers
29 views
Drupal 7.22 upgraded - Upload Images give 403 Access Denied Error
I just updated my site from 7.10 to 7.22 and now I am getting a Access Denied error on images that i'm uploading. My files folder is already 777 and everything else in there. Anyone know how to ...
1
vote
2answers
28 views
get the content type 'machine name' by the 'human readable name '
I have a content type whose human readable name is Post your blog. How can I get the content type machine name by the human readable name?
Is there a function in Drupal 7, or do I have to query the ...
0
votes
1answer
19 views
How to override a theme function?
I'm using LoginToboggan as my login page, and on the login form, it has: "You are not logged in." I want to be able to edit this text, and the admin interface doesn't give an option to do so.
...
3
votes
1answer
21 views
Is it possible to create a Nodequeue of Nodequeues?
I have a number of node queues that serve as collections of nodes. I want the user to be able to take those collections (node queues) and add them to a queue, essentially allowing the user to have a ...
0
votes
1answer
28 views
The best way to debug a custom token module development
I'm building a custom module to build some tokens.
I have add the hook_token_info() and it works great.
Know i'm with hook_tokens(), but I'm not able to debug with var_dump() or with dpm().
/**
* ...
0
votes
0answers
40 views
Is there something similar to %node for %path?
I created a module with a hook_menu() to redirect every $items[%node] to drupal_goto('<front>'). Is it possible to do the same for every alias path and how would I do that?
(The background is: ...
2
votes
1answer
26 views
Menu elements not being links, just to create submenu?
Is there a built in or module way to add menu items with hook_menu to serve as containers, not links? I have a module set. Main module provides central configuration and satellite modules do actual ...
2
votes
1answer
33 views
Views PHP filter criteria not working
Why would this not work as a Views PHP filter criteria?
if (arg(0) == 'node' && is_numeric(arg(1)) && ! arg(2)) {
$node = node_load(arg(1));
$a1 = format_date($node->created, ...
0
votes
0answers
13 views
How to call menu routing in DrupalWebTestCase for api
I'm trying to write functional tests for an api I'm building.
I'd like to be able to call the actual endpoint, using appropriate GET, POST and other methods.
I'm currently working on the index, so ...
1
vote
0answers
17 views
Captcha on login form using the form block module
I am providing the registration form using the form block module. I also have Captcha and Hidden Captcha module enabled on mysite. However i am not getting the option to add a captcha to the ...
0
votes
1answer
15 views
Adding JQuery effet in a view
I would like to add a jquery effet to a view of images (a simple content with image field). The effect that I would like to add can be seen here:
the code -> ...
0
votes
1answer
11 views
how to create slideshow of a multi value text field?
I guess I am looking for something like the field_slideshow module but for multivalue text fields - not just image fields.
0
votes
0answers
11 views
How to repeat CCK field content in a separate CCK field
I have a user-controlled CCK field called "date" where they select a date of their choosing. I need to have that value repeated in a second, separate CCK field on that same content type, for ...
0
votes
0answers
29 views
'add a field to a node' problem
I'm trying to create custom Drupal 7 module. In the form setting for the module I have checkboxes where the admin can select multiple content types:
After installing the module I have to ...
0
votes
1answer
19 views
Using pre-process to wrap multiple regions in html
I'm using Omega, and have 6 regions in a particular zone. The first and second region span the width of the zone with 12 columns, and the other 4 are 1/4 in-line blocks. I want to set the background ...
0
votes
0answers
22 views
How to run drush command/functions from code
I am trying to write a custom module that performs rsync of individual files
between different aliases of a site. The purpose is to keep two versions of
a live site in sync. To accomplish this I'm ...
0
votes
1answer
29 views
One Drupal site affecting another cloned site
I have a weird situation with cloned site, I have copied the entire content from a production server, and made a different directory for testing environment. The steps I did to clone a site is:
...
0
votes
1answer
22 views
Detecting user site visits
I some working code in hook_user_login() that awards 5 points to users for each day they log into the site. If they log in twice in one day, points are not awarded the second time.
Originally, I ...
0
votes
0answers
25 views
Chrome Autofill feature empties out selected radio buttons
I have a basic webform setup with multiple choice radio buttons and some fields for basic user information at the bottom (First Name, Last Name, Email). In Google Chrome I fill out the radios and when ...
1
vote
1answer
18 views
Retrieve / call facet blocks from non search page
I am trying to load full facet blocks on non search page to put them in cache.
What I am doing is looping through items with taxonomy $tid, then
$params = array('fq' => 'tid:' . $tid);
...
1
vote
2answers
24 views
How to find out if content was deleted (and by whom)?
One of my clients said that content has disappeared from their site. Of course like magically. No one has deleted it, he said.
How can i find out if content was deleted and by whom? Do i have to set ...
1
vote
2answers
28 views
One path alias for differents / multiple internal path?
The problem is when a menu item points to a restricted page, the anonymous user can't see the menu link.
So I was looking for a way to setup a path alias so it would point to two internal path => one ...
-1
votes
0answers
18 views
Drupal Ajax not loading the Content [closed]
I am using Mini Panels when I edit the existing content we can't edit the content (not loading the content in Ajax view) and same thing Content Analysis in Analyze content part not loading the content ...
0
votes
1answer
34 views
Polls - How do I enable anonymous users to Vote? Drupal 7
I created a poll, and am displaying it in block on my site. The radio buttons are available, when I am logged in, but if I log out then it's not showing and instead the vote results are displayed.
...
0
votes
2answers
44 views
What actually are the steps to clean the URL?
What actually are the steps to clean the URL of a site.
I have made changes in /etc/apache2/sites-enabled/000-default file as.
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
...
3
votes
3answers
34 views
How to set one path alias as the canonical alias?
I use the Tags taxonomy on several of my content types. In order to assist with a site-wide filtering mechanism, I'd like to be able to create additional path aliases for each piece of content.
For ...
0
votes
1answer
32 views
How do I programatically add a field to a node?
I'm trying to create custom Drupal 7 module. In the form setting for the module I have checkboxes where the admin can select multiple content types:
After installing the module I need to ...
3
votes
1answer
27 views
add user to role
i'm trying to create custom drupal 7 module , i'm using 'user_roles()' function to get all the roles in the system , and then i assign those roles to checkboxes API Form Control
...
0
votes
0answers
12 views
The best way to implement custom variables with Google Analytics
I need to use Google Analytics custom variables , but I want to give a different variable value depending of the urls.
I'm checking the G.A module, but I don't see how to define the variables to say ...
3
votes
1answer
31 views
How to require one of many modules in your own module?
Let's say my module needs functionality X. This functionality can be provided by two other modules. For example, front-end with two backends to store data, and at least one backend is needed for ...
1
vote
1answer
30 views
Remove home page navigation from logo at checkout
Usually users can go to front/home page from anywhere by clicking on the logo. But if I see some e-commerce site, they restrict it when we go for any steps of checkout.
I also want to do the same. If ...
1
vote
1answer
15 views
Number of item in cart at theme level
I have to display number of item in cart/basket in design where I can't use the menu. So my question is...how to access number of item of cart at theme level?
Is there any function for template file ...