Hi, I want to use drupal 8 as an only-api backend site, with a client frontend living on another server. The API has to be secured with a token.
I want to let users to authenticate on social platforms like Facebook. After client-login on those o-auth2 platforms, I receive a token. I want to allow drupal 8 to create user accounts with that token (this means, user the passed token, validating on target platform and creating an account), and returning a token that is valid to access to the API.
At the moment i'm building a module for drupal commerce 2 that makes it possible to add a price to product attributes themselves in addition to the product price.
Example:::
Attribute Color:
Red = € 4
Blue = € 7
Green = € 10
Attribute Size:
80 = € 0
90 = € 10
100 = € 12
Product T-shirt:
Base price = € 20
So a T-shirt with the attributes Green and 90 selected would be €40. A T-shirt with the attribute Red and 100 selected would be € 36.
I know how to add links to this drop button, but I would now like to call a function within my form class when a specific item in my drop button is clicked.
Any ideas or suggestions as to how I could go about achieving this?
I need to set up an e-mail system on my site that will premeditate a mailing list based on different selection criteria, to attach a file and write a message.
But most importantly, I need to archive the emails sent.
So I thought either to create a specific entity to use the send mails function, or to use an existing module type simplenews, and customize it.
I would like your opinion before starting.
Not sure if I'm missing something, but how can I create a content revisions view with the revision "Created: YEAR" as contextual filter?
So what I have done is just create a view with content revisions as its content. I added some fields and a relationship to the actual content to get the ID of the content (and not the revision) and so on. What I'm trying to do is to use a year parameter from url as a contextual filter (and also some other parameters which already work) to only show the revisions of a certain year.