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
19 views
Is there a callback for the file_managed form element?
Is there a callback for the file_managed form element?
Given:
$form['video'] = array(
'#title' => t('Video'),
'#type' => 'managed_file',
'#default_value' => ...
1
vote
1answer
22 views
Spam users and rules
I'm getting swamped by spam users. Can I use rules to automatically delete users that 1) don't have content/comments, 2) have never activated in a few weeks, and 3) have only activated the same day ...
1
vote
1answer
17 views
Image not found --> creates a path that doesn't exists
I'm trying to make a gallery with the Galleria module.
I did everything that the install guide said (module readme) and got the module to work, one time, but then when I went to my front page and back ...
0
votes
1answer
19 views
Add Block to Content but set it to appear after the node content?
I have added a block to appear in the Content region, however it appears above the content of the node for French, but below the content of the node for English - which is strange as (as far as I ...
6
votes
1answer
57 views
How do I get a block and its content commited to a Git repo?
Let's say I have created a block with some Full HTML (Facebook Feed) text inside. How can I commit the block and its text content into my Git repository, so my co-workers can pull it?
0
votes
1answer
12 views
How to preserve a “target” attribute on links in overlays?
How can I preserve target attribute functionality in Drupal 7 overlays? They appear to always be overwritten with target="_parent".
I have added a link to the help text of a field. I would like to ...
-1
votes
2answers
29 views
How to theme a webform - D7 [closed]
I am in need to theme webform in D7.
How can I do that ?
In the search I've come to know that by using web-form-nid.tpl.php we are able to theme a drupal individual form.
Could any one guide me in ...
0
votes
1answer
16 views
Migrate files from directory to Drupal using Migrate
I have a folder with a large amount of files in. I need to migrate this into Drupals file system so I can then reference them in the content.
The ID of the file is the actual name e.g. 1234.jpg
...
0
votes
2answers
18 views
give node author ability to position the image when uploading content
I have a field of type image "COVER IMAGE" in my blog entry content type. The users should have the power to place it wherever they like...top, down,right or left, if not more and re size it. right ...
0
votes
0answers
24 views
Line breaks are ignored
This is the only filter defined:
but the the line breaks are removed and multiple paragraphs are joined into one paragraph.
How can I fix this?
0
votes
3answers
18 views
Where to put Commerce Kickstart translation po file?
After installing a blank Commerce Kickstart site, I'd like install another language as default for the site.
I can see the language .po file to download -> here
Where should I put the .po files and ...
0
votes
2answers
36 views
Function to list all the blocks
I am searching for a function that list all the blocks that are enabled in a theme. Is there any function for this purpose?
3
votes
1answer
72 views
How to allow special character in username?
Is there any way to allow the special character in username like "#" and "~"?
2
votes
2answers
18 views
“Jirafe credentials are not set” warning from Commerce
After install Commerce Kickstart 2.7, there is a warning:
Jirafe credentials are not set. Get your credentials at Jirafe
What is Jirafe and Jirafe credentials?
2
votes
1answer
15 views
How to make custom jquery method accessible from Drupal.behaviors, across multiple javascript files?
I have a custom views plugin. When the view is displayed, the javascript below gets loaded. Note the custom method, do_stuff, which gets called from within Drupal.behaviors.
(function ($) {
...
1
vote
1answer
16 views
Need help styling a field in a view
I am using D7 and subtheming the commerce kickstart theme.
There is a view named Collection Products. I have added a field to the view called Product category: Description (indexed) that pulls in the ...
-1
votes
0answers
22 views
Two different splash pages for different paths?
I need to create two splash pages. One which would display only on the front page and another to be displayed only on one internal page. Does Splashify module have that kind of customization and how ...
0
votes
1answer
12 views
Set all boolean certain fields to 0 if 1 with rules
I'm trying to reset all field_flag fields of all terms of a taxonomy value, where field_flag is TRUE (or 1).
Does anyone know how to do that?
Maybe some more back-story: I have a rule that gets ...
0
votes
0answers
13 views
iCal Feeds SSL error on Drupal 7
I installed Calendar, iCal and Feeds for import event feeds from Google Calendar. I created new feed and when I try to import feeds from GoogleCalendar I got the following error:
cURL error (60) SSL ...
0
votes
1answer
15 views
GROUP BY in hook_views_query_alter() doesn't work
I'm using Views 7.x-3.6 and I tried altering the GROUP BY clause with hook_views_query_alter()
function mymodule_views_query_alter(&$view, &$query) {
if ($view->name == "view_name"){
...
1
vote
0answers
27 views
How to check for Grouping field in Views submodule?
I'm developing on the Views Datasource module to enable grouping by field (not field aggregation). I've now got the output format that I want, but I don't know what variable the Grouping Field setting ...
0
votes
0answers
36 views
How to render multiple teaser and one full view mode (of the active teaser) on the same page?
I'm trying to do the following:
Show the teasers off all the posts (content type: application_formulier) in a horizontal scroll, this works using the "simplyscroll module and is already finished ...
2
votes
1answer
47 views
why some PDOException errors are displayed in details on users screen and some other not
A user reported to me seeing the following error on his screen:
The watchdog entry for this error looks like this:
PDOException: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try ...
0
votes
1answer
14 views
How to fix this error in drupal: ajax: ajax.form.ajaxSubmit is not a function
I am creating a form with ajax submission in my drupal custom form module when i click my submit button i got the following error:"ajax: ajax.form.ajaxSubmit is not a function". I am searching some ...
0
votes
1answer
25 views
block visibility based on user
I would like to remove certain blocks, so that admin can not see them.
In block visibility settings - in pages tab, I try to put followng php code but with no effect. (In user tab there is no php ...
1
vote
1answer
20 views
Alter markup around a webform [duplicate]
I have been trying to alter the markup generated by my webform. .
Example changes which I would like to do:
Add the class "form-horizontal" to the classes under <form class=""/>.
Add the ...
2
votes
1answer
27 views
Rewrite View field value
I have a Views table that simply shows a list of Entities.
Now at the moment, field 'status' just outputs the raw data 0 or 1.
I want this to be rewritten as 'Pending' or 'Approved' respectively.
...
0
votes
2answers
34 views
How to make a “title” a link
Building a content type "news headlines." I want the title to be the headline and I want that headline to link to a outside URL that has the full story. This node-summary could then appear on the home ...
1
vote
2answers
31 views
Add theme_hook_suggestions only for nodes in content
I am developing a blog with different categories (taxonomy terms) and I wanted to have custom node templates for the nodes displayed on the blog page and category pages. Because my blog page has a ...
0
votes
1answer
20 views
Commerce discounts by day-of-week and by age
I am creating a store where users can pay for attending events at a fixed rate of £7 for each event; that's the easy part.
The hard parts are as follows:
Every Tuesday all events are half price ...
1
vote
0answers
25 views
Cancel vote when user is deleted
Is there any way to cancel user votes (if there are any) when I completely delete a user account?
1
vote
1answer
68 views
Login without password
I'm in a project where the main login form must not have a password field. The user will login with a username and selecting a Country. This country field is configured within the user profile.
So ...
0
votes
1answer
30 views
How could I select all the authenticated users and just only them?
I've a long running Drupal 7 site. Now my client needs a way to select (and act upon) the users who are not in the role "A" and "B", but just "Authenticated Users".
I know that the latter are not in ...
1
vote
1answer
27 views
Allow only single product in Cart
Is there any way to allow user only one product in cart. I used uc_restrict_qty but After that i can add more than one products also.
0
votes
2answers
37 views
Put footer/signature on every blog post?
I'd like to put a canned footer at the bottom of every blog post which has it's own content type. My blog posts can have comments so I'd like the footer boiler plate to be at the end of the post ...
0
votes
0answers
20 views
Undefined property: stdClass::$comment_body in comment_submit()
whenever I am posting a comment I am getting this error.
Notice: Undefined property: stdClass::$comment_body in comment_submit() (line 2193 of ...
0
votes
1answer
13 views
Core blog module only shows two blog entries?
I've enabled the core blog module, but it only shows two entries on exampe.com/blog
If I "unpublish" one of them, it brings up the next published blog post, which shows me that it does recognize that ...
1
vote
1answer
18 views
Ubercart hook_order and delete
So I am wanting to execute some code when an order is deleted in Ubercart. In order to test hooks, I have the following code:
function loaner_uc_order ($op, &$arg1, $arg2) {
if ($op == ...
0
votes
0answers
33 views
Add a JOIN with a subquery into a views query
Here's my SQL, which I am trying to include in hook_views_query_alter() to modify the uc_catalog view (from Ubercart 3):
JOIN (
SELECT uc_products.nid, MIN(uc_products.sell_price) AS min_price
...
0
votes
0answers
17 views
Disable webform_ajax_page on the submission edit page
With the module Webform Ajax Page I want to disable it on submission edit form in the admin section... Is that possible ? and how to achieve that?
Thanks
1
vote
2answers
36 views
One user with multiple profiles
I'm setting up a webshop were clients can have multiple profiles. For example a customer and supplier profile.
Whenever the user logges in, he gets a choice which profile he wants to sign in. ...
0
votes
0answers
14 views
Boolean field; If true in one entity place everywhere else false
I'm looking for an easy way to build the following:
I have the following terms:
Term1
Term2
Term3
Now I have an field called field_process which is just a checkbox. Term2 has it enabled, every ...
2
votes
2answers
39 views
Find out if a view returns any results and if it doesn't disable a link to that view
I have a panels page with two view panes on it. The first view pane lists taxonomy terms. When you click on one of the taxonomy terms the second view pane will display a list of content for that ...
1
vote
1answer
37 views
How to access $user_profile in page.tpl.php or $page in user-profile.tpl.php in Drupal 7?
I need to change layout of a profile depending on user's field. So, I need to either include regions in user-profile.tpl.php or access $user_profile to test that field in page.tpl.php.
I've seen this ...
0
votes
0answers
17 views
D7 - Advanced Poll - Doesn't display properly on Apple desktops and all mobiles and tablets
The site is here
The poll is on the front page right sidebar. It works fine for people on PCs. They can vote OK and see the results.
People on Apple desktops and apparently all other tablets and ...
0
votes
2answers
40 views
A flexible front page layout tool
I want to build a front page in which the site administrator has a lot of control (through the UI) over the layout. Panels is the only thing that comes close, but I still don't think it can do ...
0
votes
1answer
16 views
Show taxonomy term's image field on node page
Ive added an image field to my taxonomy terms. On a node I need to display the image of the terms it tagged with.
Ive created a view with the NID as an argument and attached it to the node content ...
0
votes
0answers
18 views
panelizer content not displaying
I have installed and enabled the panelizer module and enabled the node_view template system page on the Page Manager administer pages page. I enabled panelizer for the Basic Page content type and ...
0
votes
1answer
10 views
Multivalue entity reference synchronization
I have node type A with Entity Reference multivalue field that can reference other nodes of type A (existing). Is there a simple way/module/workflow/ruleset/other to do synchronization as follow:
...
0
votes
1answer
24 views
Views to display events with single date events and events with date range
I have a views view that displays a list of events. These events have a start-date and an end-date. I have two exposed filters, one for the start-date and one for the end-date, so that users can ...


