All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
364 views

add Solr search box in views filter

I have succesfully installed solr and it is working fine, but my main search in my drupal site is based on views exposed filters, is there a way to add the solr search in views filters, so it ...
-1
votes
0answers
19 views

How to disable notifications to update modules?

I would like to know if there is any way to disable the Drupal update message that appears highlighted in the image below.
2
votes
0answers
383 views

node/123 is not redirecting to its alias

I have something going on in my site that I didn't notice until now. I am using the Domain Access module to create multiple sites within one Drupal instance, so I'm thinking that may have something to ...
0
votes
0answers
9 views

Regular expression in Drupal Conditional fields module not saving values

I am using using Conditional Fields 8.x-1.0-alpha4. Is there is a problem with conditional fields that use regular expressions? Values are nullified after saving the node. My control field is a list ...
2
votes
1answer
360 views

Records with identical uid and timestamp in node_revision

I'm investigating an issue on a D7 site where a handful of node revisions have apparently gone missing. The issue was discovered on 3/5, and I just noticed in my node_revision table that several ...
3
votes
3answers
576 views

Views: Filter if Value of a field equals logged in user display name?

How to do I create a filter on my view that filters based on the value of one field being equal to the name of the currently logged in user? The field is static.
0
votes
1answer
411 views

Alter the path of the more link from Views

In Drupal 8 how do I alter the more link? I need to give it a path which is based on a taxonomy id that is based on the current path (where the view is on) which has the taxonomy name in the path. ...
0
votes
1answer
367 views

Change the size of the form element for content title

I could have sworn that when we created our content type, we could select the size of the textfield for the title. I am unable to find that now as I'm in "Manage Fields" and the edit link that's ...
0
votes
1answer
337 views

Mail System module replacement?

We recently updated Drupal Core to 7.26. Since that update Mailsystem doesn't work correctly. We've had to remove it from our site. The error message we recieve is: PDOException: SQLSTATE[HY000]: ...
0
votes
1answer
31 views

Could not find package with stability dev in a version installable using your PHP version

When I want to install Drupal Commerce using Composer via Git Bash terminal and using the following command: $ composer create-project drupalcommerce/project-base mystore --stability dev I get the ...
0
votes
1answer
473 views

How to acess API rest/views using token or login?

I have a Drupal 8 website. I need to access the list of articles using www.myexample.com/rest/views/articles. I could get the token using curl --header "Content-type: application/json" -b cookies.tt -...
2
votes
1answer
403 views

SEO friendly URL for drupal commerce products

I am using Commerce Product Url module for generating unique url for commerce products like follows, For each product it provides id parameter, mycommercesite.com/node/1?id=1 mycommercesite.com/node/...
0
votes
2answers
355 views

Altering Views Exposed Form Elements and their Associated Labels

I have a series of Views Exposed Forms across a Drupal 8 website. My goal is to generate unique template suggestions so I can theme each individual input and their labels differently as needed. Here ...
1
vote
2answers
356 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
0
votes
2answers
332 views

field_get_items / value when creating new content

I think I am about to lose my mind .. how in earths name do I get the value of a field in a widget during creation? I created a custom field widget, and during creation of new content I want to be ...
0
votes
0answers
20 views

Ckeditor Wordcount plugin - How to target specific textareas

I'm using the CKEditor - WYSIWYG HTML editor Drupal 7 module and wordcount plugin. I've added the wordcount plugin file in the ckeditor plugins directory and got it working, however my config max word ...
1
vote
1answer
3k views

Add a span/class to a field

I've found a way to add a style to a region. The link is /admin/structure/ds/styles. I've found a way to specify a style for my Title. We can choose the "class" attribute of title property. Howe ...
0
votes
1answer
1k views

Share nodes and users across multiple sites

I understand sharing databases/tables is frowned upon as a practice, however, I need to share users and some nodes between two websites. What are the alternatives and what are the pros and cons of the ...
0
votes
1answer
31 views

How can I specify background color and image for a block or node?

My web page consists of vertically aligned blocks. Each of these blocks/nodes may have a custom background color or image. I am entering the background color/image within the specific block. How can ...
1
vote
2answers
393 views

Display a block based on the term reference field of the current node

What I'm trying trying to do sounds fairly simple, but I can't get my head around it. I'm having 2 taxonomy vocabularies: machinery and batteries (both created with NAT for all that matters), and 2 ...
0
votes
0answers
13 views

Updating Pathauto fails [on hold]

Extreme PHP and Drupal beginner here, trying to contribute to an existing site. I'd like to update Pathauto to 8.x-1.5, which results in: Fatal error: Declaration of Drupal\webform_ui\Form\...
0
votes
0answers
8 views

Creating search form that will query SQL database and display results on a custom block

I am new to Drupal and have learnt about custom blocks. Basically, I am trying to create a search page where on the left column will have all the filter/search criteria. On the right column the ...
0
votes
1answer
354 views

How to hide profile2 field label and captcha label in registration form

I've tried using 2 different functions, where both successfully sets the value to 'invisible' with a dsm($form) check. However, the label is still being displayed. function MYMODULE_form_alter(&$...
0
votes
1answer
460 views

Add Checkboxes to a views listing of titles

I am looking to pull in a views listing of events by title into a entity form. I need help figuring out how to add checkboxes to the views listing of title. This way if someone checks the box when ...
0
votes
1answer
446 views

Alter title link in taxonomy view mode

Under /admin/structure/taxonomy/my_vocabulary/display/entity I've got a view mode "entity". For this view mode, I would like to alter the way the link in the title field is built (the title is ...
1
vote
2answers
330 views

Update command won't work for multisites

I have a Drupal 7 site with a half-dozen multisites/subsites and I am trying to setup Drush so that I can run my modules updates from the command line for the subsites. Running Drush for the main site ...
1
vote
2answers
330 views

Taxonomy term missing as type of data to store in new field for content type

I have Drupal 6.2. I added a taxonomy term and I am trying to to add it as a new field to a content type. However, I don't see "taxonomy term" as a "type of data to store" when I try to select a field ...
1
vote
1answer
800 views

how to display an image in theme using img tag?

I need to display an image in the page footer using <img> tag. In my page.tpl.php I have following block: <div id="copyright"> <img src="../images/logo.png"> <p class="...
0
votes
1answer
336 views

How to show number of a views return results without submitting the view?

I have a view with some exposed filters.When selecting first exposed filter,I want to appear the Number of the view results without having submitting the view.Same thing for second exposed filter etc. ...
0
votes
1answer
350 views

How to send email invite user fill in webform automatically?

I'm using drupal 7, and had a seminar questionnaire form created using webform. I would like to invite seminar attendee to fill in this questionnaire after they attend the seminar, by sending them ...
0
votes
1answer
410 views

How to use variable value in twig file?

I have below code in: {% set img_url = item.image.url ? item.image.url : {{ base_path ~ directory }}'/images/default.png' %} Twig file. How to make it work so it will take full default image path?
0
votes
2answers
397 views

Commerce PayPal wps sends to and gets data from sandbox but no payment method available

I'm on localhost without ssl and fix IP. I can checkout with PayPal WPS, go to sandbox, confirm as buyer, and when I click in the sandbox I go back to my testsite after confirming to leave SSL. In ...
1
vote
1answer
385 views

Views: attachment inherits exposed filters when set to No

I created a page with an attachment to it. Its a Glossary for the Username. And here is my attachment setting: i Have exposed filters on the page where it is attached to: And the Filters works ...
0
votes
1answer
380 views

Custom Module Route run by External Cron Task

I created a Drupal 8 module that cURL to a SFTP, grab a xml file and write it on the files folder. This module as a route (with _access: 'TRUE'), pointing to a controller that does the task. While I'...
0
votes
2answers
352 views

Node value from form state

I have a node which I want to update from a form states values. I can set each value individually like: $node->set("foo", "bar"); Is there a way to mass assign the values instead of setting each ...
3
votes
1answer
526 views

Two displays with an exposed filter

I have a view using one exposed form in a block with a couple exposed filters. I would like the same result set to be used in two displays that have a slightly different format. One of my exposed ...
0
votes
1answer
18 views

Programmatically create new Schedule Updates Entity Reference on Node

I’m attempting to populate an entity referenced field created by the Scheduled Updates module within a content type, Event. Within Event I have two Scheduled Updates fields to check and uncheck the ...
0
votes
1answer
792 views

searching and entity references

I have two content types documents and authors. When creating a document a selection list of entity reference's to authors is used to select the author. Searches for the author name find the correct ...
-4
votes
1answer
23 views

Why is my db_query not working? [on hold]

i am trying to display my content types and their info in a table format. First thing i want to do is make sure i am connected to the database. It seems i cant connect to the database. Please assist. ...
0
votes
2answers
441 views

Custom field “required” validation

I built a custom field type using the Field API. In hook_field_validate I have some logic to validate some very custom stuff, but when I tried to add a "This field is required" validation, I realized ...
4
votes
1answer
372 views

Append Fields to node form by ajax call

I have a node form with some fields, now I want to append some more fields to it on an ajax callback. in the ajax page I have rendered the new form elements with drupal_render function My problem is ...
1
vote
1answer
459 views

How to pass variable of paragraphs type to another preprocess function

I want to override the fontawesomeicons.html.twig (Fontawesome Module). But I only want to do this for "my-very-special-paragraphs-type" and not in general. I think it is a good idea to declare a ...
3
votes
1answer
361 views

How to add html tags to account setting emails?

I am working on a project where I need to add some custom headers to the email which we send to the user on registration. Is there a module which support this functionality?
1
vote
2answers
403 views

Panels block title translation

I use blocks in a panel with Drupal 8. With view generated blocks there are no problems: The block titles are translated accordingly to the view settings. With custom blocks, it appears to be ...
0
votes
0answers
27 views

How to remove fieldset wrapping radios and checkboxes elements?

so, Drupal 8, by its default internal process of rendering Forms, wraps radios and checkeboxes group in fieldset element which makes the html output little bit complicated. How to alter such ...
1
vote
1answer
470 views

Clone product display with referenced product

I am using Commerce Kickstart for Drupal 7, and I need to be able to clone products. In Commerce Kickstart you have all the products just as "reference" of node, product display. I mean, the products ...
0
votes
1answer
26 views

Displaying multiple fields in referenced webform option?

First I have a content type Quiz option which represents one option (answer) for a webform question (field). Then I have a (entity reference) view which is collecting specific number of nodes in this ...
2
votes
1answer
331 views

give permission of create new revision to specific roles

I need to give the permission of "create new revision" to a specific role. but nothing related to this issue appeares in permissions page! I've installed Revisioning module too. how can I set it?
0
votes
0answers
10 views

Bulk update fileds integration with Address field

I am trying to bulk update nodes that contains Address field using the bulk update fields module with no luck. I created an ticket in the issue log and had a response from the developer, nevertheless,...
0
votes
1answer
37 views

Is there a way to selectively export specific relevant configuration into custom modules?

I'm learning D8 and gaining familiarity with the configuration management aspects of drush. All my configuration is exported into my config/sync directory and I cherry picked the relevant files and ...

15 30 50 per page