This forum is for less technical discussions about the Drupal project, not for support questions.

Custom file field with web service

I am using drupal 8.9.10
I have a content type with several text field, and a file field too.

My problem is: 
- I have to call an external web service. 
- This web service receives a file and returns it with a verification code.
- I have to add this file to the file field
 and finally save all the content

I am a beginner in drupal, I have been looking at tutorial to create custom modules and I don't know how to develope this. 

I don't know if it is necessary to create a module or create a custom field

How do I make the current user's entities on the home page ?

I am using the following code in the templates of the home page of my site, to make the display mode frontpage_tasks for the current user's account. It works perfectly :

{{ drupal_entity('user', user.id, 'frontpage_tasks') }}

I want to make the same display mode for the current user's stores and groups. I tried the code below but it doesn't work :

{{ drupal_entity('commerce_store', user.id, 'frontpage_tasks') }}

and

php code in view vs php code in template file

Hi friends

I'm having some doubts about using php code in a view using a field global php or using php code in a template file,

is there some changes talking about performance, or time to load?

thats because i have some views that have php code and the way i'm thinking to remove that code is create a template with that field

What do you think about that?

Regards,

Mario

Drupal Commerce comparison with Prestashop

Hello,

Not sure there is a Drupal Commerce specific forum chat, but I'm looking for to do a solid comparison of Drupal Commerce and Prestashop.  I am partial to Drupal, as I continue to learn it, but I have to make a real gap analysis that sets my preferences aside.

Looking for input from the field, I do have both installed for individual comparison, but feedback is appreciated.

Thank you,

R

Transferring custom PHP site to Drupal

Hi, I'm taking a look at using Drupal for replacing the functionality of my custom-written PHP-based website. The site consists of a one-off main page (its own layout), a number of article pages with common navigation, etc., a forum (Simple Machines Forum) and I want to implement a shopping cart. I did a number of things that might already be built into Drupal, or might be difficult:

Exposed Filter Date Granularity

Hi All,

I have a datetime field which contains the start date & time of an event. I want to setup an exposed filter on a view that allows a user to select a date and for the filter to show all events occurring on that date regardless of their start time. 

I've tried setting up the datetime field  with an exposed filter where i select a date, but it seems not to work (i presume because a time element is being included in the criteria too). 

Pages

Subscribe with RSS Subscribe to RSS - General discussion