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
1 answer
418 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
1 answer
683 views

SearchApiQuery - possible to remove a filter?

The query parameter that is passed to search_api_query_alter has SearchApiQueryFilter member. It contains a protected array of filter elements. I can add to this by calling the createFilter() and ...
4 votes
1 answer
897 views

How to use url alias in views for taxonomy terms?

On a Drupal 7 site with pathauto installed I'm using a view to show all taxonomy terms of a given node. The terms are linked to the term's page. The problem is, that the path of those terms does not ...
0 votes
1 answer
485 views

How to programatically change file user owner

I'm using the Services module. I can upload files through web services, but the problem is that all the created files have the same owner, the user account used for the web services. I would like to ...
1 vote
1 answer
574 views

Display message instead of redirecting to Access Denied page

I'm using Commerce Auction module for an auction site. I want to display a message when the auction time out occurs for a certain product and at the same moment the user clicks on place bid tab. ...
2 votes
1 answer
496 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
1 answer
429 views

Change / Set Node Reference field in hook_form_alter

I am trying to set the value for an existing Node Reference drop-down field in a content type via hook_form_alter as part of an AJAX call. The form needs to set values based on a selection, which is ...
0 votes
2 answers
849 views

Show all events that are active between two dates chosen from exposed date filter

I have a problem in showing views results with an exposed date filter in D7 views 3.x. problem We have several events with a date field. It is required to fill in a start and end date. We want a ...
0 votes
1 answer
49 views

Do I need to apply changes in default.settings.php to settings.php?

Recent updates to Drupal 7 have included changes in default.settings.php. Do they need to be incorporated into settings.php manually, or does the code automatically look up in default.settings.php ...
0 votes
1 answer
377 views

cmis configuration alfresco cloud

I'd like to use the Alfresco Cloud ECM with my Drupal instance. I created an alfresco site. I installed and activated the CMIS module. Here is my configuration script: $conf['cmis_repositories'] = ...
1 vote
2 answers
889 views

Check if form already failed validation

I added a validation hook to a node creation form. For my project, i need this validation only ONE time: basically i just check if a value already exists in the DB and i notify it to the user. If the ...
1 vote
1 answer
462 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, ...
3 votes
1 answer
509 views

How do you keep the login block on the same page when validation fails?

On pages where the login block exists, I need to stay on that page (and preserve query string arguments) if the validation fails when submitting the form. Does anyone have any idea how this could be ...
1 vote
1 answer
585 views

Making a REST AJAX call from Basic Page

The following successfully calls a REST Services Module endpoint when contained in a module but I cannot get it to work within the script tags of a basic page. (function ($) { var myapi = { '...
1 vote
1 answer
601 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 ...
2 votes
2 answers
1k views

Map or Edit Query String Values in Views?

As part of a port of a non-Drupal site to Drupal, I need to map a url query string to filters. For example, if I have this query string and slect filter selected on Site A (Non-Drupal) Site A Value ...
0 votes
2 answers
1k views

How do I get Facebook latest uploaded images for an account?

I am new in Drupal, I want to get all the images from my Facebook account and want to display them into front end. I tried Facebook Album Fetcher module but this module give me the facility to get ...
1 vote
1 answer
634 views

Why my query string generates page not found for my view?

In Drupal 7 I'm using a view export to download information for my orders. If i go to the default url /admin/commerce/orders then the page downloads correctly. However, I also have some filters so I ...
0 votes
1 answer
1k views

Proxying a subdirectory to a remote site

The goal Make all requests to a previously static page at https://www.example.com/sub/folder on server 1 (Proxy) ACTUALLY go to a Drupal site at https://other.example.com on server 2 (Origin) This ...
1 vote
1 answer
820 views

How to eliminate direct access to files in private directory?

I have set up my Drupal 7 site for private files in a directory above root (../private). I also set my filefield on my node type to upload the image files to that private directory. I have two user ...
0 votes
1 answer
24 views

trigger('RefreshView') problems with pagination

Colleagues, can you please advise: there is a views with enabled ajax and pagination, there is a form on the page (also ajax, but not views), which makes changes to the displayed views values. To ...
4 votes
3 answers
470 views

How to Auto Publish nodes based on set interval?

I have nodes being generated from a Feeds import on a periodic basis, however when they are imported I would like them to be queued to be published on an hourly basis (or x minutes) I have looked at ...
2 votes
1 answer
714 views

Conditional fields not working with hierarchical select module

Case: I am using the Hierarchical Select module for allowing users to choose taxonomy terms from a particular vocabulary. Based on the chosen terms (deepest level), I want to display a field using the ...
1 vote
1 answer
1k views

In search result page, pagination is not showing up

I have migrated a site from Drupal 6 to Drupal 7. I have rendered the search form in page.tpl.php as follows: <?php $block = module_invoke('search','block_view','form'); print ...
0 votes
1 answer
419 views

How to count the number of votes for each star in fivestar?

I'm using Drupal 7, Voting API and Fivestar. I try to count the number of votes for each star, and display the percentage, like : It is at present possible to have only the number of total vote. ...
0 votes
2 answers
544 views

only allow to upload profile pictures of a certain size

I want to limit the user to only upload profile pictures of 160x160 size. What is the simplest way to validate that the resolution of uploaded avatar picture is actually 160x160, and provide an error ...
0 votes
1 answer
51 views

How to upload .webp to Image field?

https://www.drupal.org/project/imagewebp lets you upload a regular jpg/png which converts it into webp, but how to upload already a file that is in webp? Adding it as one of allowed extensions in the ...
3 votes
1 answer
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
1 answer
362 views

View is rendered as "empty" even though the query returns results

I've got a Drupal View that I expect to return some results, but when I look at it (logged in as user 1), the empty result message is displayed. I turned on the setting which tells Views to output SQL ...
0 votes
1 answer
1k views

view exposed filter ajax error coming for non administrator user

I have event calendar module which is perfectly working fine. For some other users (non-admin users) I have to give permission to access events posted by them (They have permission to view the ...
0 votes
1 answer
579 views

How to create a chart about a date range if some dates in this range are missing?

I use charts module Charts and I want to create a view that shows the stats from a date range. I have an exposed filter and this filter has a between range. I want to show all dates from values of ...
1 vote
1 answer
452 views

How can I update webform_submission uid in the table, after which the anonymous user has registered?

I'm a graphic design, and I just started using Drupal 7. I have a form created with webform, which collects data entered by the user, after sending, the user is directed to the purchase page. The ...
0 votes
1 answer
585 views

Force users to always log in and show no content

I am using Drupal 7.31 and I installed the MD Alpine theme. I have a site which loads a video on the front page. I want to hide this front page. When users come to my site, I want them to be ...
0 votes
2 answers
509 views

How do I use an absolute URL to set as breadcrumb link?

I would like to use absolute URL instead of relative URL as the breadcrumb link on my website. Right now, I am using Drupal 7 and Path Breadcrumb 7.x-3.0 Module. All my breadcrumbs are set by Module. ...
3 votes
1 answer
566 views

How to manage reservations with a 2 hours duration without duplicate bookings?

I want to make a calendar view that will show when music teachers are available, so that students can register online and attend a lesson. The courses have all the same duration which is 2 hours. For ...
1 vote
1 answer
363 views

Get node view count for each day

I have site with thousands of user and logins each day. I need to track each page views of each user to generate a report. If a user 'A' visits a page 'P' today, a new entry daycount is added to the ...
0 votes
1 answer
653 views

String replace with rules

Is there a way to string replace with rules? I'm trying to find some way to transform values without changing a value entirely. Is there something I'm missing, or should I just make a custom rule ...
1 vote
1 answer
566 views

Can 1 FullCalendar show dates from more than one content type?

I want to show "dates" and "Board Meetings" on my FullCalendar. How? Background info: In D7 I created a Calendar using the wizard, which shows titles and dates/times of events that I create using a ...
1 vote
1 answer
477 views

default value imagefield -> get from field collection item

I've got a contenttype "gallery" with an imagefield "thumbnail", used in listviews oder teaserviews. This contenttype also has a field collection with "image", "title" and "description". So what would ...
1 vote
1 answer
450 views

Blocks aren't being assigned to a region

Is there any reason that these blocks wouldn't be assigned to the regions specified? The only way I can get these to appear is to set them manually. Kinda defeats the purpose of defining a region in ...
1 vote
1 answer
572 views

Simplenews Scheduler - only send newsletter when attached EVA view contains results

Simplenews Scheduler is working well for me to send a weekly email which contains an attached view (using EVA) of nodes. I would like the newsletter to only send if the attached view contains nodes, ...
0 votes
1 answer
500 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 ...
0 votes
2 answers
1k 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 ...
1 vote
1 answer
417 views

How to specify entity reference fields when programmatically submitting to user_register_form

You'd think this would be easy. I'm calling drupal_form_submit('user_register_form', $form_state) to automatically register users after they have completed filling out a Webform. But I have some ...
0 votes
1 answer
420 views

form #type => checkboxes with zero / empty option value

I am building something which uses a form element with '#type' => 'checkboxes'. I want this to be reusable, so it should accept anything as option values that works as a PHP array key (integers ...
1 vote
1 answer
524 views

How to include XML file in node for js map rendering?

I have a clickable map that uses js, css and xml to display. I previously was provided solutions in a previous thread How do I implement a clickable JavaScript map? using drupal_add_css() and ...
1 vote
3 answers
891 views

How to set up a cron job that runs for a specific rule?

I have a 2 rules that should run each on a specific time interval instead of the regular cron job setting. I have a list of "Sessions" (entity type) that should be evaluated to see if their ...
0 votes
1 answer
683 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. ...
0 votes
1 answer
528 views

How to configure gmap in template file

I override node display for content type Match Fixtures by creating node--match-fixtures.tpl.php file and put code below: <?php $location = $content['field_stadium'][0]['#locations']; $stadium_map ...
3 votes
3 answers
442 views

How to generate a resume after an applicant submitted an online resume?

I'm currently building a recruitment system using Drupal 7. In my system, an applicant who wants to apply for a job, needs to complete an online resume (one time only). Question: Are there any ...

1
2 3 4 5
530