Drupal Syntax List
Drupal Syntax List
Field Collection {% for details in node.field_collection_name %} {% endfor %} For loop is used to render field collection items http://spinx.local/projects/lightbay_capital/web/foundation
Image {{ file_url(details.getFieldCollectionItem().field_name.entity.fileuri) }} "details" is the name of variable used in for loop and image is url format http://spinx.local/projects/lightbay_capital/web/foundation
Media Image {{ details.getFieldCollectionItem().field_name|file_url }} "file_url" is used as filter for rendering url of media image http://spinx.local/projects/lightbay_capital/web/foundation
Text {{ details.getFieldCollectionItem().field_name.value }} "details" is the name of variable used in for loop http://spinx.local/projects/lightbay_capital/web/foundation
Menu Active Class JS /** Menu active class **/ Add .navbar-menu class in ul
$(".navbar-menu li a").each(function () {
if (this.href == window.location.href) {
var t = $(this);
$(this).addClass("active");
}
The version of powershell currently In this case first check your powershell version. Go to start menu type "powershell" then a
installed on this host is less than command prompt like blue color window will open, in that reach the root i.e "c:/", type
the required minimum version. Please "$PSVersionTable", after this command a version table will come as output, now check for line
upgrade the installed version of "PSVersion", if it is less than 3.x then open command prompt and execute command "choco
powershell to the minimum required upgrade powershell" -> requirement is you must have "Chocolaty" installed in your system.
version and run the command again.
To enable File Field in Webform Module In settings.php do this: $settings['file_private_path'] = 'sites/default/files/private'; and clear all caches ; )
Field label Field syntax Description Example site URL
Field label Field syntax Description Example site URL
Field label Field syntax Description Example site URL
Description Code Example site URL
Overide drupal core library https://drupal.stackexchange.com/questions/267853/how-do-i-use-an-older-jquery-version
https://drupal.stackexchange.com/questions/248131/how-do-i-use-a-jquery-version-different-from-the-default-one-used-by-core
$view = Views::getView( 'product_category_listing' );
$view->setDisplay( 'all_product_category_landing' );
$view->execute();
Drupal twiq twig list of result code $variables['all_product_category_landing_count'] = count( array_keys( $view->result ) );
Content Import https://www.drupal.org/project/contentimport
https://www.drupal.org/project/csv_importer
https://www.drupal.org/project/imce
https://drudesk.com/
Save term pogramatically https://befused.com/node/315
https://www.valuebound.com/resources/blog/how-to-create-a-drupal-entity-programmatically-drupal-8
https://gist.github.com/himerus/f6875db8d3b6c575074c10fb4fb0df95
https://drupal.stackexchange.com/questions/108868/programmatically-create-a-term
Add term in to node by field using term id https://drupal.stackexchange.com/questions/197610/8-how-to-programmatically-add-terms-to-an-existing-node
Add parent term to child term http://purencool.com/accessing-taxonomys-name-and-parent-tid-in-drupal-8
Load term by name https://drupal.stackexchange.com/questions/225209/load-term-by-name
Simple node importer Module https://www.drupal.org/project/simple_node_importer
Total Control Admin Dashboard Module https://www.drupal.org/project/total_control
https://www.drupal8.ovh/en/tutoriels/55/create-taxonomy-term-programmatically-on-drupal-8
https://www.zyxware.com/articles/5555/drupal-how-can-we-load-node-file-taxonomy-entities-by-id-in-drupal-8
https://drupal.stackexchange.com/questions/233522/how-to-get-term-name-from-a-tid
File save code http://web-tricks.org/content/how-to-attach-an-image-or-file-to-node-in-drupal-8-programmatically