drupal-8

Virtual Host with MAMP

≡放荡痞女 提交于 2019-12-02 06:42:00
I installed Drupal 8 with MAMP. My MAMP preference number for Apache Port : 80 , Nginx Port: 80 and MySQL Port: 8889 In etc/hosts file, I add 127.0.0.1 mmcast.test In httpd.conf file, Listen 80 and uncomment the following line. # Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf In httpd-vhosts.conf file, NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> ServerName mmcast.test DocumentRoot "/Applications/MAMP/htdocs/mmcast" </VirtualHost> When I call the site, I type mmcast.test:8888

How to update my view in Drupal 8 without going back to the first page?

♀尐吖头ヾ 提交于 2019-12-02 04:14:33
I'm trying to refresh my View in Drupal 8 without reloading the page with this code : (function ($, Drupal) { 'use strict'; setInterval(function() { $('.view-message-activity-stream-timeline-public').trigger('RefreshView'); }, 10000); })(jQuery, Drupal); My module : <?php /** * @file * Holds hook implementation for the Message Activity Stream module. */ use Drupal\Core\Entity\ContentEntityBase; use Drupal\group\Entity\Group; use Drupal\node\Entity\Node; use Drupal\comment\Entity\Comment; use Drupal\commerce_store\Entity\Store; use Drupal\commerce_product\Entity\Product; use Drupal\user\Entity

Drupal 8 - creating an accordion field

自闭症网瘾萝莉.ら 提交于 2019-12-01 13:16:40
In Drupal 8 -- I want to modify the basic-page content type to be able to support an "accordion field type" I've seen the list field type - that can have unlimited fields -- but I am looking for a solution that can feature -- header/body - type features. There is no module to handle this for you, the solution is to create unlimited Entity Reference in your content type, it must have two fields, Title and Body as you want, and to convert it to accordions you should customize new entity field theme and implement accordion there. Another solution is, handle it by https://www.drupal.org/project