hey, Here you get how to subtract to date in angularjs with core functionality
If you know how to make a content type template in drupal 7 then you can easily understand in drupal 8, Here there is not much change except that the template is in twig format.
For creating the content type template in drupal 8 you have to do two things :
1) Add this code in your mytheme.theme file in your working theme folder :-
Drupal 8 gives the flexibility to make menu template and design the menu with our need, to do this --
hey guys,
If you want to create the snapshot daily of you aws instance this article is for you, previously I was use aws cli to make snapshot daily using linux cron, but few months back I found a script by caseylabs on github, following url will get you there or attached zip will also work, I recommend that download and install from URL:
https://github.com/CaseyLabs/aws-ec2-ebs-automatic-snapshot-bash
Usually we all use "rm" command to delete or remove the files and folder on linux, but if we want to delete the specific type of content/files then we can use "find" command to find and "delete" command to delete;
find . -name "*.zip" -type f -delete
or enter path of directory
find /path/to/dir -name "*.zip" -type f -delete
if you to get list of all items of specfic extension you can do like this before delete -
find . -name "*.zip" -type f
or
ls -la *zip
Sometimes we get this php error on long page load or load many files are at once
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 54 bytes)
This is because of memory_limit parameter of php.
If you have sufficient RAM available on server your used you can change this parameter on php.ini
change this -
memory_limit = 128M
TO
memory_limit = 1024M
n PHP sometimes we need to find the specific word in the string for the programitically use the code, there is a function called "strpos()
" will help to do this.
example:
$string = 'this is website name is key2goal'; if (strpos($string, 'key2goal') !== false) { echo "Found"; }
Please Comment your thoughts and feedback below and add something if you found good in anywhere to help others
If you are getting permission error while installing CiviCRM on xampp then, its is default CiviCRM user permission error,
Just comment the following code in "sites/all/modules/civicrm/install/index.php" See Below:
Find below code on index.php usually at line no 268, comment the whole If condition :
As we know drupal 8 use symphony, so module structure of drupal 8 is change and workflow functionality of doing thing also change. we can make Drupal 7 module procedure oriented but in drupal 8 module needs to follow object oriented MVC architecture.
In this tutorail we learn how can we create the node programmatically in drupal 8 with image upload using custom module.
Let say module name is "nodecreator"
1) To Create a module we need a nodecreator.info.yml file
This tutorials explains how to install solr 7 on ubuntu system
1) Install or Check Java
Apache solr 7 required java to run there application on the server. Verify java is installed or not on server first using command:
java -version
Result :