0
votes
0answers
2 views

How to choose between classic SQL query and Drupal 8 technic?

I have a custom content entity (amap_distributions_inscriptions) linked to 2 entity_reference 'datedistributionid' (which is basically the date of distribution plus other fields) and 'amapienid' (...
0
votes
0answers
3 views

How to edit external database from Drupal 7 interface?

I am working with Drupal 7.44. Using the great module Views Database Connector, I managed to display data from an external database, previously configured in settings.php as mentioned by Drupal.org. ...
0
votes
0answers
4 views

Register New User Using RestAPI in Drupal8

How to register new user using Rest API in Drupal8? I spend couple of hour but however no documentation/help found for this. This is the e.g of creating node: curl --include \ --request POST \ --...
0
votes
0answers
8 views

How to fetch field tags and categories from Node API in Drupal 8 given Drupal 7 code [on hold]

$node = node_load(1); if ($node->language) { $lang = $node->language; // Language choosen } $categories = ""; $tags = ""; //If tags are set for the node if (isset($node->field_tags[$...
0
votes
0answers
6 views

Integration between Feed import and cron

I am using Drupal 7.43 and I want to read my data from an external database every 15 minutes. My site is hosted on an Ubuntu server. I am using Feeds importer with SQL parser. Through the link .../...
0
votes
0answers
8 views

How to show year/months in archive block?

I want to create a archive block for blogs. I tried by using default archive view block, bot that structure is not suitable for my requirement. I need years to display and when I click on years, ...
0
votes
0answers
10 views

I want to upgrade my module but cannot find any suitable documentation [on hold]

I see that there are tons of changes in Drupal 8. Yet, there is no comprehensive documentation about the drastic changes. It's getting really painful to upgrade the module to Drupal 8. Any help or ...
1
vote
1answer
6 views

Access list of view modes available for nodes

In my code, I need to get a list of all the view modes defined for nodes. In Drupal 7, it was available via entity_get_info(). What is the equivalent method for producing a list of available view ...
0
votes
0answers
5 views

Aggregator channels do not update anymore

For a half year, I have run a website with all sorts of news channels displayed trough the core aggregator module on www.tri-portaal.be. Once in a while, I keep adding sources. But recently my news ...
0
votes
1answer
8 views

How do I access the parameters fields of hook_mail_alter(&$message)?

I am using hook_mail_alter in drupal 8 to alter the email messages sent through contact form . How can I access $message['params'] fields in hook_mail_alter()? I am getting the following values with ...
0
votes
2answers
6 views

Displaying parse errors in module development on the browser

I am currently trying to learn Drupal Module development. As one might guess, many errors get created in the process. But, all i can see is WSOD on the browser. For the same errors, most of the ...
2
votes
1answer
6 views

Template Suggestions Based Off URL Alias - Drupal 8

I'm trying to work out how I can add my own template suggestions based on the set URL alias. I've found lots of information out there regarding Drupal 7, but very little for 8. I know I can use the ...
0
votes
0answers
8 views

How to programmatically populate FileEntity

I have a file entity with some custom fields, for example a date field. How can I programmatically set the field values? If I, for example, set date-field value with a DrupalDateTime object, I get an ...
1
vote
1answer
12 views

Render block programmatically in Drupal 8 returns 0

I create a block at /admin/structure/block/block-content and I want programmatically render it in our custom template files. What I did is function hook_preprocess_page(&$vars) { $block = \...
0
votes
1answer
8 views

Webform get all submission for a node by date

I am using webform_get_submissions to get all submissions, I have a requirements to get only one day back submissions. Is there any way to get this results?
0
votes
0answers
8 views

where do i add “drupal_lookup_path code” for tid instead of title

Iam trying to change url term id to term name. i got reference from jasonglisson.com $url = drupal_lookup_path('alias', 'taxonomy/term/'. $known_tid); /*So in my case, I was able to write a foreach ...
0
votes
0answers
3 views

Why do I receive only 4 of 5 mails sent with the contact form?

On my D7 site, I use the default contact form. Every now and then, the website owner tells me, that he has not received mails sent by clients via the form - but when I tested it with some mails, we ...
0
votes
0answers
4 views

How to show auto archived content in auto archive module

I have a requirement of archiving the blogs. So I have used auto archive module,with this module I will get archive option while adding contents. But my question is how can I show these year-wise data ...
0
votes
0answers
5 views

How do I pass a profile field as contextual filter?

I am trying to pass a profile field as contextual filter in a view. How do I add it?
1
vote
0answers
8 views

entity_privatemsg_message

Working on a Android APP to read/reply private message (Drupal 7). I am able to access all secure information for a user. Services/Resources> works file. shows the entities But I am facing some ...
0
votes
0answers
16 views

I can't show the body content with full HTML

My fresh installed Drupal 8 site can't display articles that use full HTML. Is that normal? Using the Full HTML input format, it appears like this. I have to change the input format to Basic ...
0
votes
1answer
16 views

Programmatically add a footer to a view

I need add a footer to a view based on certain conditions. I followed this article and as per my understanding this should work. But this is not giving me any result. Here is my code: function ...
0
votes
0answers
4 views

Drupal Installed in subfolder, Issue is redirecting to main folder after saving a node

I have done somany changes in rootpath htaccess & settings.php file as well as subfolder htaccess & settings.php files but still getting the below issue. Drupal Installed in subfolder, Issue ...
2
votes
2answers
65 views

How do I pass the value of a PHP variable?

I have the following code in Drupal 6. drupal_add_js(array( 'take_control_fb' => array( // 'pubKey' => variable_get('take_control_public_key', ''), 'dataUrl' => ...
0
votes
0answers
3 views

Publish Blog Post command line

I've been looking around the Internet trying to investigate how to publish a blog post via either rest APIs or other command line tools. However, I have not found a way to do this. How can I publish a ...
0
votes
1answer
13 views

What is the correct template filename?

I created a new content type using Drupal 8 with the machine name "reviews." I thought that by duplicating the original content type template file, node.html.twig, and renaming it node--reviews.html....
0
votes
0answers
13 views

I want to make a Glossary (Taxonomy term)

I make a Glossary (taxonomy Term) and I make like the glossary(content) which exist in Drupal core. Here is the image attached. So, when I click in A or B or whatever, an error will appear. Here ...
0
votes
1answer
10 views

How to pull twitter feed in content type?

I need to create content type(twitter content ) where i can pull twitter feeds so that i can use that content type for entity reference and print the twitter feeds. Can any one please help or assist ...
0
votes
1answer
11 views

When creating a new user with a order, how to email the new user login details

I am using Commerce Admin Order Advanced. It allows the following extras when creating an order in Drupal Commerce Search users by email or profile name before creating the order Select existing ...
-1
votes
0answers
15 views

Drupal 7 & GoDaddy : Allowed memory size [on hold]

Using goDaddy as my hosting, i've run into many issues with drupal. My site is small however, when i try to say something or update, or add a module, view, etc, i get the fatal error " Allowed memory ...
0
votes
1answer
16 views

Having problem with namespace

I am writing a custom module, I am trying to use the validateExtensions() method defined from the Drupal core File module inside the FileItem.php file, in my own controller, using the following code. ...
0
votes
0answers
11 views

Heartbeat module crashes the site

I tried enabling the heartbeat module on drupal 7 and as soon as I try to enable it from module page the site returns a blank page. Is anyone facing the same issue with this module or an alternative/...
0
votes
1answer
8 views

Drupal 8 - “Level up” link in taxonomy term view

this is my first question on Drupal Answers so... nice to meet you :) On Drupal 8 site I've replaced default taxonomy term page for one of my vocabularies with composition of view and block. View ...
1
vote
0answers
11 views

Why does the “drush status” command result in “Permission denied”?

I installed Drush via global Composer, and it seems that it should have installed correctly. However, when I executed drush status in terminal, it resulted in Permission denied. Why is this happening ...
0
votes
0answers
7 views

Targeting values within an stdClass variable

I'm trying to target a value in an object in my form, but Drupal throws an error when I try. The object I'm trying to target is the 'amount'. However, when I try to dpm the variable in question, '...
0
votes
0answers
2 views

Search box feature for two fields to list customers

A friend of mine who I have built a Drupal site, wants a Search box feature on the Drupal homepage I.e Trade Search box, so a visitor can select a specific trade and area code and retrieve a list of ...
0
votes
2answers
27 views

Output Custom Field in Drupal 8

How can I output a custom field in Drupal 8 (Bootstrap theme)? Editing the field.html.twig file, if I have a custom field named field_title I thought {{content.field_title}} Would display it, but ...
0
votes
0answers
3 views

Is there a module to enable showing image feeds for a specific Instagram hashtag for Drupal 8?

I am trying to create a page that displays images and username posted in instagram with a specific hashtag, just like when you search a hashtag through instagram. All modules I found present feed from ...
0
votes
0answers
8 views

Form ajax add more button added via another ajax callback not working

I have a form button which I want to add another field with another button on that form( I am able to do this) but second button is not clickable. Any idea. Following is my code- This is my form code-...
0
votes
0answers
12 views

PayPal Recurring Payment - Drupal commerce [on hold]

I am using Drupal Commerce and the payment gateway needs to be in paypal recurring method for the user subscription. I have tried with both the Commerce SP PayPal and the Commerce PayPal modules. But ...
0
votes
1answer
9 views

Drush error: “ContainerAwareEventDispatcher” does't implement EventDispatcherInterface::getListenerPriority

I'm using Drupal 8.1.2 and Drush 8.1.2 (OS X 10.11.5, PHP 5.6.19) In all of my drush-commands, there occurs an error, that there is a missing implementations of the symfony EventDispatcherInterface::...

15 30 50 per page