All Questions

0
votes
0answers
3 views

Rule that sends one email out at specific time each day with view content in it D7

I have 5 different views that show different metrics within blocks on the front of my website. I want a rule that can send this information to me by email each day at a certain time. How do I do this, ...
0
votes
0answers
2 views

How to set time limit only for one php file?

I have a script which walks through database table, makes some checks and based on them it makes notifications for website users. It works for a pretty long time. Currently in dev it takes a minute ...
0
votes
0answers
4 views

Get node form inside preprocess_views_view_fields()

how can I get the node id through the : preprocess_views_view_fields()
0
votes
0answers
8 views

Get the data of a given content type inside any TWIG template

I have a content type named Flower with two fields : Name and Color. In my-theme/templates/page.html.twig I want to print the name and the color of each flower : <div id="page"> {% for ...
0
votes
1answer
6 views

How to change image style using hook_views_pre_render() with Drupal 8 Media Image

I am trying to adapt the following Drupal 7 code to Drupal 8, in order to set a different image style to every image in a view: // Assigns a random style name to each image function <MODULE_NAME&...
-2
votes
0answers
8 views

Create a AMP simple template hook

I need to replace the usual tags from html to amp tags. (Drupal 7) For example: <html> to <html amp> <img> to <amp-img>, but I don't want to replace the complete template, ...
-2
votes
0answers
8 views

Error when creating Pie Chart in Charts Module

When I try to create a pie or donut chart it gives me this error message: "Cannot read property 'color' of null". All other chart types work. Any idea why the module returns this error or how to fix ...
0
votes
0answers
7 views

Add radio buttons to search block and have selection persist

I'm relatively new to Drupal and have been working with 7 and 8. I'm trying to modify the search block to add radio buttons - allowing users to select if they're searching the site or a catalog. ...
0
votes
0answers
19 views

How many different ways are there to create a “page”

By page I mean what's served by a given route/url. Trying to understand all the options so I know what I can combine (e.g. create a View, and use a render alter hook to add a form at the bottom). ...
0
votes
1answer
12 views

Print module download pdf file name change characters into HTML entities

I am using print module to generate pdf using dompdf library. I am facing issue with file name which node title have ampersand(&) sign, this character is converting into &amp;. For example- ...
-1
votes
0answers
10 views

Add A Field in Product Variation that lets user Choose From A List of Terms in A Specific Vocabulary

I want to add a field in product variation that lets customer choose from a list of terms in a specific vocabulary. For example, I have a vocabulary of "Pizza Recipes". The terms in the vocabulary ...
0
votes
0answers
7 views

Contextually filtering a view using values from a completely separate table?

I have a table "user_connections" id | uid1 | uid2 1 | 1 | 2 2 | 3 | 1 etc So, if the current user has uid = 1, then according to my table, he is "connected" to use 2 and 3. So I just want ...
1
vote
1answer
11 views

Display a view block with a list of content excluding the one currently displayed on the page

I sometimes use contextual filters to display fields matching the content ID from url In that case , i would like to display a list of content as a view block , except the one that is displayed It ...
0
votes
0answers
14 views

Creating a “tag blacklist” for users on a view

I'm looking to allow users to create a "blacklist" of certain tags on a site. My plan was to do this through adding a "Blacklisted Tags" field on the user entity, but I'm open to other solutions. If ...
3
votes
0answers
34 views

Alter webform messages found in WebformMessageManager

List item Is there a way to change the hardcoded webform messages from /webform/src/WebformMessageManager.php? for example, the one on line 284 case WebformMessageManagerInterface::...
-4
votes
0answers
18 views

Is there any module that supports RTMP (Real-Time Messaging Protocol) in Drupal 8? [on hold]

I need to implement RTMP services in my site. Does core media module support RTMP?
0
votes
0answers
6 views

Views filter, add an anchor to the redirect url

I have a website with some news. I create a view that show this view and can filter them by category. The problem is that when I use my filter it reload the page and go at the top of the page, I want ...
-6
votes
0answers
15 views

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads?

How to upload a large files 500-1500 MB and how to restrict the number and time of uploads? Need to upload genomics FASTQ files. The backend will process them and return results to the email, provided ...
-2
votes
0answers
21 views

How to use custom theme for a single custom module [on hold]

I have a .module file for my custom module where i have written a hook. I want this custom module to use custom theme. I am using Drupal 8. function check_theme($existing, $type, $theme, $path) { ...
-2
votes
0answers
12 views

training comparsion between drupalize.me and build a module [on hold]

We are looking for online tutorials and found 2 options 1. Build a module 2. Drupalize.me could somebody please help which of these websites have good and structured content for learning .
-2
votes
2answers
21 views

How to create a rule and inject mysql code?

Can I create a rule on my drupal 7 website and that rule will: Whenever a user is logged in (only logged in users can see this content) and a certain content is clicked I want to write a mysql update ...
0
votes
1answer
8 views

How to use a token in the reference fields

1-I have a node with the name of the project. 2-this node has a project_name field that generates by these Tokens 3- I have a reference field that it load an entity type in the project create the ...
1
vote
0answers
12 views

IEF reference show parent field as title using Auto Entity Label

I am new to Drupal 8 want to add a field value to IEF reference title. for now, I am using Auto Entity Label version 2.x-dev to automatically generate a title for my Entities but when it comes to IEF ...
0
votes
0answers
2 views

Drupal Commerce KickStart - Add 'Quantity Widget' in Products Page

I want to add a quantity widget in the content of my product page. It wasnt present in my interface. I dont why the quantity widget shows up automatically in other content types. I viewed managed ...
1
vote
1answer
18 views

How to disable views pager programatically in certain cases

I have a paragraph which shows a view. The editor may set some options as argument filters, sort and show/hide pager. "Normal" fields are used to collect these options and ...
0
votes
1answer
40 views

Programmatically auto-submit a Webform after visiting its URL

I am wondering whether it's possible to programmatically auto-submit a Webform after visiting its URL and to save the user from a 'submit' button click. The below webform can be accessed via /form/my-...
-3
votes
0answers
12 views

I want to know more about menu links [on hold]

I want to add more details to my page instead of it being just a straight down page. How would I add format so that I can buttons on the left or right side with words?
0
votes
1answer
13 views

Multiple path aliases based on taxonomy term

I have taxonomy terms from A-Z and each article can belong to multiple terms. for an example, when I create a new article, I have a multi select list for terms. Therefore a particular node should ...
-1
votes
0answers
10 views

How can I style image on custom form upload?

I have Drupal custom module with a form and a number of fields in it. File upload is one of them, it's working fine. But I need to preprocess image before uploading, preferably with Image module. Here'...
0
votes
1answer
13 views

How to programmatically search content with a specific taxonomy term with Search API?

I'm working on programmatically searching content with the Search API module. Ideally I would like the ability to select which taxonomy term of a content type is being searched. For example, if I have ...
-1
votes
0answers
22 views

How to disable caching for hook_preprocess_menu

I have used hook_preprocess_menu to add the child to the menu items. The child's are a specific content type. If i make changes to the content the changes are not reflected to the menu item child ...
0
votes
0answers
16 views

Link entire teaser views row to content with core or contributed module?

When creating views I prefer use views modes rather than fields. I have been reading up on accessibility stuff and one topic that comes up is that adjacent fields, linking to the same url can be a ...
-1
votes
0answers
7 views

how to make my views field link open form modal?

How add the options: data-dialog-type="modal" id="my modal form id" data-dialog-options="50%" to my view field custom link if the rewrite result as only has link class???
0
votes
0answers
24 views

How to serialize a form's render array to JSON

I want to build a REST resource to return Forms as JSON with all labels, help text, default values, etc... When I use REST's built-in resource /entity/entity_form_display/node.article.default it does ...
0
votes
0answers
10 views

Weekly Drupal cron task exiting unexpectedly, Drupal not reporting error

I have my doubts that this problem is actually caused by my Drupal configuration, but am wondering if anyone else has experienced a similar issue and how they went (or would go about) troubleshooting ...
0
votes
0answers
8 views

Using image styles with a normal “managed file”?

I created a content type with 4 fields on it: Private Image Field Public Image Field Private File Field Public File Field I am able to access 1 and 2, as they are image fields. But if I upload an ...
0
votes
0answers
10 views

766 security update database schema errors

After updating to 7.66 and running update.php i get an error: Class name must be a valid object or a string in /home/breastcancertiss/public_html/includes/common.inc on line 8066 I have 6 schema ...
0
votes
0answers
7 views

I cannot delete the default content [on hold]

I am deleting all the default content of Drupal 7 Commerce Kickstart, bnut I found out some content cannot be deleted. I don't know if it's because I wrongly configured something or what. I am using ...
0
votes
0answers
3 views

Put a product image on the tile view of products

I had installed Drupal 7 Ecommerce Kickstart. Whenever I search something, the products list are shown with no cover images shown. I can only see images, when I particularly click the product link. I ...
0
votes
0answers
9 views

Make “Add to Cart” Button Appear Below

I have installed Drupal Ecommerce Kickstart. I want to make the "Add to Cart" button below and not in the middle. How will I do that in Drupal 7?
0
votes
0answers
12 views

How to map key value pair xml data in feeds mapping

I have a xml data like this. In feeds_ex how can I map the metadata key value pair to content type fields target. What to write in new xpath source.
0
votes
0answers
28 views

How do I dynamically change cookie_lifetime?

I'm trying to change cookie_lifetime dynamically in my D8 project, to set cookie_lifetime to 0 or to some value(for example 24 hours). I know that this can be partially acomplished by changing ...
0
votes
0answers
14 views

How do i alter commerce product price?

I have installed Drupal 8 and using commerce 2.x, I want to alter price according to the user set its own price on user field of a user who created the product. example: user1 has its user price 10 $ ...
1
vote
0answers
18 views

How to progammatically subscribe a user on edit form(user_form)using Simiplenews?

How to programmatically subscribe a user on edit form(user_form)? I use the code below in hook_user_presave after I checked if the user is already subscribed. $subscription_manager = \Drupal::...
0
votes
0answers
9 views

Devel “devel.toolbar.settings_form” does not exist even though the route exists

After updating my core with 8.6.15 and devel with 8.2 version, I am facing the following error: Route "devel.toolbar.settings_form" does not exist. The website encountered an unexpected error. ...
-1
votes
0answers
18 views

React JS Setup in Drupal 8 [on hold]

I want to create a project using Drupal as the backend and React for the front end, but I have no idea how to set up the React inside of the Drupal theme not just including the library. Thanks
0
votes
0answers
19 views

How can I add the entityconnect's add new button to a view

Im hoping someone can assist me as I'm starting to learn Drupal 8. I have a relationship between an Artist content type (Parent) and Album content type (Child), and I have a view set up that displays ...
0
votes
0answers
17 views

How can send an alert email after 30 days when the content is not updated

Now I am currently using a Drupal 7 for our project. I am using a rule module but I am new in Drupal so I can't know in detail information about rules module. I want to implement functionality like ...
0
votes
0answers
12 views

How to move comment submit button inside fieldset

I created a new group for a content type under Comments Fields (admin/structure/types/manage/page/comment/fields), and set the type Fieldset. Is there a way to move the comment Submit Button inside ...
0
votes
2answers
22 views

How do I log in if I can not get the login prompt page to come up as it should?

I am having some issues with my Drupal 7. Because of a different bug I am having with component or panel, one that is taking over pages and hiding other parts of a page somehow, my login page has ...

15 30 50 per page