How to add second Matomo instance for this kind of configuration?
https://developer.matomo.org/guides/tagmanager/integration-plugin
Can I use something like this?
Related
Hello Everyone!
Currently i'm working on a proyect where every customer can add it's store to add some services and stuff. Even when the view it's the same for all stores (obviously loading each store own data) i would like to create an url using as subdomain the store name like this.
Let's say the store name is : The Wolf
So the URL i would like it to have is : thewolf.mycustomdomain.com
I'm currently working on React js using react-router-dom so i would like to ask to this community if anyone knows how to make this happen.
Thanks in advance if anyone can give me some hints!
You can not create subdomains in react. You need to configure a proxy for it. You can look at this post for more information.
what i'm trying to do is create a local database for user so when he adds an item to shopping cart it gets stored in there, and that database should be local and also unique for every user and basically it's based on they're Api_key so i was wondering what technologies should i use to create that database.
/// what i have tried to do
basically i tried storing the data's in localStorage of the browser but in this case it's no use.
What are you actually trying to achieve here? There are things like lowdb, but I don't think that's what you are after.
sounds like what you're looking for is a cookie. npm package
Is it possible to use React in order to programatically create new aws-cognito users and delete them? I know one can update with Auth.updateUserAttributes. Is there something similar for creating and deleting users like e.g Auth.updateCreateUser or something. If possible please include an example. Thanks!
This should be possible with Cognito JS SDK. See https://docs.aws.amazon.com/cognito/latest/developerguide/tutorial-integrating-user-pools-javascript.html
To delete the user take a look at https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminDeleteUser.html
I'm new in CakePHP. Currently I got a problem in my task.
I had assigned to create a Plugin name UserManagement and Login in app/Plugin/
The Plugin UserManagement already has completed. But now I having a problem in Plugin Login. Actually I need to use User Model from Plugin UserManagement in Plugin Login. However, I don't know how to write a scripts and what steps first I should taken?
I try before, create LoginsController in Controller. But It display an error mentioned that I need to create Model first. Infact that, I actually plan to use Model from UserManagement.
Please assists. Thank you.
Sorry..my English is bad. TT_TT
You have to add
$this->loadModel(PluginName.ModelName);
in our controller and then
$data = $this->ModelName->find('WhatEver');
Hope this will give you some help.
I want a link that when you click on it, it will call a simple ajax query which updates a database entry. Normally this would be easy, but because authentication needs to happen before the query is executed, I need to be able to execute the Ajax Query AS THE CURRENTLY LOGGED IN USER. I.e. I need access to the $user variable and I don't want to create a new connection.
Does Drupal have native functions that can do this? Is there something I can use to do this?
You're going to want to create a module to handle this. Then, whatever function you call through the callback will have complete awareness of the logged in user.
Keep in mind that if someone makes a link that goes to your AJAX destination on their website, and can trick people into clicking it (or, for that matter, makes that link the src on an img tag), then weird things can happen to people's data without them meaning to.
I suggest the use of a token and checking that the token submitted as part of the link matches something to do with the user. Check drupal_get_token() for a good way to generate one.
Either create a menu item in a module implementing hook_menu() and specify a callback to a function handling this request - or use the Services module and create a new service module.