Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
1
vote
2answers
609 views

Dynamic menu item based on Views argument

Is it possible to have a dynamic title on the menu item based on the argument that Views is receiving? I'm using the title on the menu item on the breadcrumb and my breadcrumb changes based on the ...
0
votes
0answers
8 views

How do I move a https site to localhost?

I am moving a site from the live server where it has an SSL certificate and is accessed by HTTPS to my localhost. After moving the site over, I get an ERR_SSL_PROTOCOL_ERROR. I am uncertain of how ...
1
vote
1answer
631 views

How to trigger a rule if a node has a certain Taxonomy term?

I'm trying to create a rule using Rules that will apply a watermark to an image within a node (using the ImageCache Actions module) if that given node has a specific Taxonomy term. For example, nodes ...
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
1answer
12 views

Changing the html and order of system fields(pass/email/locale/etc) of user edit form

I have changed a number of forms accessible by users to fit a certain style. To do this I used an #after_build function that adds prefixes and suffixes to fields, as well as a bit of javascript. This ...
0
votes
0answers
6 views

Items removed from Node Reference field are still displaying on the node

This problem only very recently cropped up; I've never encountered it before. I have a content type (Resource) that contains a Node Reference field (pointing to Organization nodes) that allows ...
0
votes
0answers
17 views

Captcha not visible in login form

I enabled the Captcha module in drupal 7.It is not visible at user_loginand validation message is shown for not filling it. I tried inspecting it and none appeared. Math question field is required. ...
0
votes
1answer
659 views

How to send password expire notification to users regularly?

Working on Drupal 7, I want to get an alert every 3 months to users saying that: Password will expire in next 5 days, please change it. I found a module called Password Expire (fulfill requirement ...
0
votes
0answers
9 views

How can I allow only one flag per matching field value within a view?

I have a view that allows users to flag nodes directly through the view, I'd like to limit it so that can only flag one item per category at a time. For example: VIEW Category 1 Node A ...
1
vote
1answer
561 views

How to create a confirm popup when delete item with field collection?

I have configured a field collection field (unlimited items) for a content type and I want create a confirm popup when user delete an item. For this, i found that i can directly go and modify 2 ...
0
votes
3answers
887 views

Max length of text field

How can I increase the max lenght of Tab-Title ?
1
vote
1answer
23 views

How can I hide a field in the node add form but it unhide it on the node edit form?

I'm having a content type in that I want a field "Status" to be hidden in add content form page(I'm setting default value in that add content). Now I want that field to appear in edit form page of ...
0
votes
0answers
28 views

How can I reduce the time to first byte? [on hold]

My website takes very long time to load the home page and other inner pages. Actually website homepage have lots of images and videos. Homepage have almost 85 images and 18 videos as video slider. ...
0
votes
0answers
20 views

Issues removing a Block from content

I'm working on an old D7 site and have been asked to remove a Block from a particular page. First thing I tried was to go to the page in question, click the gear icon next to the block and select ...
0
votes
1answer
573 views

Entity Translation: Translate breadcrumb

I'm having issues translating breadcrumb. Everything works, menu items, strings etc... a part from breadcrumb. I've tried hook_menu_breadcrumb_alter to reset the title with no success. How can I ...
2
votes
2answers
693 views

How can I attach multiple pdfs to drupal_mail() function?

Was doing something like this global $base_url; $uri = $base_url . '/sites/default/files/test.pdf'; if(!empty($mail_content)) { /*send mail */ $to =$...
1
vote
1answer
647 views

How to force Drupal to translate current path to another language?

How to get path to current node but of another language? Available languages: English (URL prefix: en) Polish (default, no URL prefix) Enabled detection methods: URL (by prefix) Session (parameter:...
2
votes
1answer
602 views

Field with unique and auto-increments values

I have a content type that in one of their fields need a value that is unique and auto-increment. There are several obvious solutions: Use the node id that is unique and auto-increment. The Serial ...
0
votes
1answer
64 views

Cannot move block Main Page Content to different region

Realy need your help. I'm working with quite old Drupal 7 site and for some reason I cannot move the Main Page Content block to any different region. When I drag&drop it to the Header region (on ...
2
votes
1answer
594 views

Taxonomy term name alias in taxonomy term autocomplete

I'd like to have two or more names for one Term-ID in my custom taxonomy dictionary. As for now I've added a custom field and named it "Synonyms". The field can have multiple values. How can I ...
0
votes
0answers
17 views

I want to override page.tpl.php to work for all pages or custom urls

If i override page.tpl.php to page--front.tpl.php which is working for only front page of site. But i want that overrided .tpl file should work for other urls as well. how can i create ? is there any ...
0
votes
0answers
27 views

When changing values in the database why does this not affect the view?

edit: How could i use Views bulk operations for the change of a field's value? Instead of directly editing mysql? I have a content type, f.e mycontentype, which has titles, like: Title - library1 ...
2
votes
3answers
641 views

Is there any way to know if it is the first visit of a Anonymous User?

I'd like to know if is there any way to know if it is the first visit of a Anonymous User? If so, can I fire up a rule to redirect the visitor to other page.
1
vote
2answers
578 views

Error in drupal_form_submit when taxonomy reference (tid) is set

While trying to creating a node programmatically using 'drupal_form_submit' i've come across a php error in the form.inc code Here's my code function vl_sample_data_generate_yvbct1() { ...
0
votes
1answer
708 views

How to Center Image in View Slideshow

I can't get the views slideshow to center in the div. I tried the following code but with issue: #views_slideshow_cycle_main_content_slideshow-block { width: 100%; text-align: center; } #...
0
votes
1answer
599 views

Getting a custom field to appear correctly in Rules using entity form module

I have written a custom field widget called foo which is inserted into an entity form to provide an autocomplete to another web service. I am trying to get the field data to be sent in an email via ...
2
votes
1answer
759 views

Views with exposed filters WITHOUT `Use Ajax`?

Is there a way to use exposed filters, but not require Use Ajax ? I want exposed filters but I want it to submit the form and refresh the page.
6
votes
3answers
669 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 ...
0
votes
1answer
636 views

How to display the profile page in Modal window

By using ctools, i am able to display a form in modal window. Now i wish to display a page(the profile page) in modal window. Below is the sample code (call by menu page callback) to display a html ...
1
vote
2answers
628 views

Hide Alt and Title for image field

How to hide Alt and Title fields for anonymus users when they upload images? I use tokens for these field that's why I need to hide them.
1
vote
0answers
12 views

How to mark related entities as dirty in search api module when edited?

I am using Drupal 7 with the search api. I understand that one of the 'common pitfalls' of the search api is 'Changes in related entities don't lead to re-indexing'. I am bringing in a field called '...
0
votes
0answers
9 views

Entity Translate won't show translations on template overrides

I have set up entity translate and it lets me add the translations so they are stored in the DB. But when I click on the translated page, all I see is the orginal language which is English. So I these ...
3
votes
1answer
348 views

Getting book pages in same level like getting child pages

I have a book called courses with several subpages, I want to show the list of ot other subpages when one subpage is open. Example: -Courses ---Course1 ---Course2 ---Course3 ---course4 I want to ...
-1
votes
0answers
6 views

Copy billing to shipping fields error when auto insert

When on the shipping page on checkout, and both billing and shipping fields is empty. If i do this: Making full name billing field active, My browser (chrome or firefox), opens a box with my ...
0
votes
1answer
703 views

How can I disable the form confirmation message?

I'm referring to the green box that informs the user that they have successfully submitted their form. In particular, I'm wondering if I can remove it without writing any php. Is there anything in the ...
-1
votes
0answers
19 views

Can't send response to client after ajax call, because of cURL call on server

Please bare with me if this question is stupid... I have spent days googling for a solution without finding one. The background is that I am trying to implement an onsite payment method in my Drupal ...
0
votes
0answers
21 views

Get field value in viewer.js file (from pdf.js)

I created PDF files protected with password. They are uploaded to Drupal and the password is saved in a field pdf_password in Drupal. I would like the PDF to open them with pdf.js without having to ...
0
votes
0answers
12 views

Delete a content type's allowed values, and all parent nodes should not show info regarding these values

I have a content type f.e. parts, with the following values: electrical, machine, glass, liquid or NONE I also have a content type, f.e. product, where with a view one can select which part the ...
0
votes
1answer
412 views

How to add Table of Contents in a PDF?

I am using the Drupal Print module to create downloadable PDF from my site. This works very well indeed. But I would like to have a table of contents in the left region of the downloaded PDF. For ...
0
votes
2answers
4k views

Update multiple rows (with different ids and different values) using one query

I want to update multiple rows in a custom table using just one query. Each row has its own id (obviously) and different fields/values to update. Given this question and this post, i think i can ...
1
vote
1answer
367 views

Uploaded file not shown in custom content type / Image not attached to content type

In Drupal 7, I am trying to upload an image that belongs to a custom type. I click the Browse button, choose the file and upload. Until there, all seems to work well. However, when I click next, ...
0
votes
0answers
13 views

Undefined property $uid when running update.php

I have had a minor issue which has been popping up whenever I run update.php such as after updating some modules, etc. Anytime I run update.php I get the following error: Notice: Undefined ...
4
votes
1answer
383 views

How to limit what is available for a role in Administration menu ?

I am using Drupal 7 and installed the Administration menu. It works fine and I am really happy with it but after creating a new role, and also creating a new user for that role, he seems to have the ...
0
votes
1answer
1k 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 ...
0
votes
0answers
18 views

Help needed with ajax request from Jquery to callback function

I create the callback url 'swish_payment/request' in my hook_menu() function: function swish_payments_menu(){ $items['swish_payment/request'] = array( 'type' => MENU_CALLBACK, ...
0
votes
1answer
17 views

How to show one variation of one product in a View Pane

I have a View Pane on my home page where I list all products that are in promotion. Each product variation that can be set to "show in promo banner 1" via a taxonomy term field with checkboxes. So the ...
0
votes
0answers
11 views

Advanced forum search view ignores topics first post

Advanced forum module comes with the search view. It searches for a user inputted search term in forum topic content type and returns those topics that contains this term in its comments. The ...
1
vote
1answer
2k views

How do I get navigation menu on top with narrow viewport?

I'm running Drupal 7.28 with Zen 7.x-5.5. In the default setup, there is a region on the right side named "First sidebar" which contains a block named "Navigation". I have put my navigation links ...
0
votes
1answer
694 views

Views webform filter based on the current node field value

I have a Webform where it's used to get product comments. This webform is exposed in a node page and has a field that is populated automatically with a value from the current node, lets say "...
2
votes
1answer
804 views

How to expose filter for entity reference as dropdown in the Search API view?

In my Search API view, I'd like an Exposed filter > Entity reference to be a select box, not a text field. Details I have a view which I created like: Views > Add new view > Show: default node ...