| title | component |
|---|---|
Liste Audio |
ContentPage |
Nodes Drupal
| import React from 'react'; | |
| import Layout from '../../components/Layout'; | |
| import ItineraryListPage from './ItineraryListPage'; | |
| import { JSON_API_URL } from '../../constants/env'; | |
| const title = 'Audioguide'; | |
| async function action({ locale, fetch }) { | |
| // Use Drupal locale (e.g. convert en-US to en). | |
| const languageId = locale.substring(0, 2); |
| # Drupal with PostgreSQL | |
| # | |
| # Access via "http://localhost:8080" | |
| # (or "http://$(docker-machine ip):8080" if using docker-machine) | |
| # | |
| # During initial Drupal setup, | |
| # Database type: PostgreSQL | |
| # Database name: postgres | |
| # Database username: postgres | |
| # Database password: example |
| CREATE TABLE `company` ( | |
| `id` mediumint(8) unsigned NOT NULL auto_increment, | |
| `name` varchar(255), | |
| `description` TEXT default NULL, | |
| `phone` varchar(50) default NULL, | |
| `email` varchar(89) default NULL, | |
| `website` varchar(255) default "http://example.com", | |
| PRIMARY KEY (`id`) | |
| ) AUTO_INCREMENT=1; |
| define host { | |
| use linux-server | |
| host_name vpsxxx.xx.xx # replace | |
| alias vpsxxx # replace | |
| address 127.0.0.1 # replace | |
| max_check_attempts 5 | |
| check_period 24x7 | |
| notification_interval 30 | |
| notification_period 24x7 | |
| } |
| (...) | |
| constructor() { | |
| super(); | |
| this.state = { | |
| audioList: { data: [] }, | |
| }; | |
| } | |
| componentDidMount() { |
| import React from 'react'; | |
| import { REST_HOST_NAME } from '../../constants'; | |
| import Layout from '../../components/Layout'; | |
| import AudioContentPage from '../../components/AudioContentPage'; | |
| export default { | |
| path: '/audio/:id', | |
| async action({ params }) { |
| title | component |
|---|---|
Liste Audio |
ContentPage |
Nodes Drupal
| @import '../variables.css'; | |
| @import '../Page/Page.css'; |
| @import '../variables.css'; | |
| @import '../Page/Page.css'; | |
| ul { | |
| list-style-type: none; | |
| padding-left: 0; | |
| } | |
| li { | |
| margin-bottom: 30px; |
| <?php | |
| namespace Drupal\rest_import\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| use Drupal\Core\Entity\Query\QueryFactory; | |
| use Drupal\Core\Entity\EntityTypeManager; | |
| /** |