Since we already wrote about how to make custom entity(data model) we will want to configure base fields we are adding, first thing you will want is to configure what fields are used for view and form part.
Since we already wrote about how to make custom entity(data model) we will want to configure base fields we are adding, first thing you will want is to configure what fields are used for view and form part.
In previous blog post we talked about how to create custom drupal entity(content entity), here are some reasonings when to do such a thing and why.
To create data models like in some other platforms you need to use Content Entity. Drupal org tutorial about this is broken at this point 18/2018 so use this instead
When I was new to GIT this scared me, I was afraid I could somehow delete my current project or something like that, but it is rather trivial to add new GIT repo to existing project. All you need to do is add a remote config and do some initializations. Basically you do this
This solution is useful If you want to have something like standard and premium users and show different content for each role. What we mean here is to show just part of the node for normal user and full node for premium users. So how do we do this? We build 2 different view modes for that node type.
You can always start your own dockerfile and docker compose configurations but there are really good prebuilt solutions that can get you start right away. I took a look at top 3 in my opinion and here they are.
This is most commonly used tool to visual inspect mysql databases with drupal, so there is a good chance you will want to use it with docker. So if you don't have it already installed with your drupal compose and you are building it from scratch you can manually add it. Do:
IF you want for some reason start from scratch and make new DB or anything else regarding mysql queries, you should first find out the name of your DB container and then with that name run command below and you will have access to SQL and you can then drop and recreate DB.
To see all containers adding the -a
flag to "docker ps" will show all containers.
docker ps -a
When you are sure you want to remove them all, first stop them all then remove them all
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
For final cleanup do this
If you are using docker and mysql and getting something like