Лекция для студентов НТУ ХПИ. Рассматривает основы работы с полями (nodes) в Drupal 7 - рассмотрен вопрос использования существующих поелй, их настройка, программная работа с полями,
Лекция для студентов НТУ ХПИ. Рассматривает основы работы с полями (nodes) в Drupal 7 - рассмотрен вопрос использования существующих поелй, их настройка, программная работа с полями,
How can you be confident that your code is well-tested? For me, the criteria are straightforward: you feel comfortable deploying it automatically to production on a Friday evening, and the release pipeline stays as green as an evergreen tree. In this talk, I'll share some approaches that I am following to hit both targets for Node.js apps (APIs BFFs, etc)
Node.js BFFs - our way to the better/micro frontendsEugene Fidelin
To be able to implement new features in as little time as possible, we migrated our
monolithic Java-based frontends towards smaller Node.js BFFs (backend-for-frontend, BFF
pattern - create separate backend services to be consumed by specific frontend
applications).
Now we are close to the next step in our journey and adopt Micro-frontends architecture to
build our web apps as a composition of even smaller features which are owned by
independent teams
The burden of maintenance, keeping things consistent, secure and up-to-date grows with the number of services and libs owned by the teams.
At Marktplaats/Adevinta Benelux we work hard on improving developer experience of our frontend platform so less time is spent on housekeeping and developers can focus all their efforts on product development and nothing else.
Node.js BFFs: our way to better/micro frontendsEugene Fidelin
About 2 years ago Marktplaats.nl started to build a new platform. We migrated from huge Java-based frontends towards smaller Node.js BFFs (backend-for-frontends). We are close to the next step and adapt a micro-frontends approach.
Here I would like to share the outcomes of this quest: what architecture solutions are made, how does Marktplaats.nl run and scale so many BFFs in production, how we grew as a team, educated frontend-developers to write backend code and what were our biggest challenges.
Practical advices how to achieve persistence in Redis. Detailed overview of all cons and pros of RDB snapshots and AOF logging. Tips and tricks for proper persistence configuration with Redis pools and master/slave replication.
Фичи н-н-нада? Или почему стоит использовать модуль Features.Eugene Fidelin
Presentation about using Features module for Drupal.
Made for DrupalCamp Donetsk 2011
Video: http://www.youtube.com/watch?feature=player_embedded&v=3nLlrEYFwgA
How can you be confident that your code is well-tested? For me, the criteria are straightforward: you feel comfortable deploying it automatically to production on a Friday evening, and the release pipeline stays as green as an evergreen tree. In this talk, I'll share some approaches that I am following to hit both targets for Node.js apps (APIs BFFs, etc)
Node.js BFFs - our way to the better/micro frontendsEugene Fidelin
To be able to implement new features in as little time as possible, we migrated our
monolithic Java-based frontends towards smaller Node.js BFFs (backend-for-frontend, BFF
pattern - create separate backend services to be consumed by specific frontend
applications).
Now we are close to the next step in our journey and adopt Micro-frontends architecture to
build our web apps as a composition of even smaller features which are owned by
independent teams
The burden of maintenance, keeping things consistent, secure and up-to-date grows with the number of services and libs owned by the teams.
At Marktplaats/Adevinta Benelux we work hard on improving developer experience of our frontend platform so less time is spent on housekeeping and developers can focus all their efforts on product development and nothing else.
Node.js BFFs: our way to better/micro frontendsEugene Fidelin
About 2 years ago Marktplaats.nl started to build a new platform. We migrated from huge Java-based frontends towards smaller Node.js BFFs (backend-for-frontends). We are close to the next step and adapt a micro-frontends approach.
Here I would like to share the outcomes of this quest: what architecture solutions are made, how does Marktplaats.nl run and scale so many BFFs in production, how we grew as a team, educated frontend-developers to write backend code and what were our biggest challenges.
Practical advices how to achieve persistence in Redis. Detailed overview of all cons and pros of RDB snapshots and AOF logging. Tips and tricks for proper persistence configuration with Redis pools and master/slave replication.
Фичи н-н-нада? Или почему стоит использовать модуль Features.Eugene Fidelin
Presentation about using Features module for Drupal.
Made for DrupalCamp Donetsk 2011
Video: http://www.youtube.com/watch?feature=player_embedded&v=3nLlrEYFwgA
Фичи н-н-нада? Или почему стоит использовать модуль Features.
Работа с Views в Drupal 7
1. Работа с представлениями (Views) в Drupal 7
Модуль Views (http://drupal.org/project/views) — служит для
создания страниц, блоков содержащих динамические
списки объектов (нод, комментариев, пользователей и т.д.)
Позволяет визуально конструировать запросы к БД и гибко
настраивать способ и внешний вид отображения
2. Список Views в Drupal 7
Список всех View находится на странице admin/structure/views
3. Добавление новго View в Drupal 7
View добавляется с помощью мастера admin/structure/views/add
5. Добавление полей во Views в Drupal 7
Жмем на ссылку FORMAT > Show: Content
1 3
Теперь во View можно добавлять
поля, которые могут содержать
2 значения системных свойств
материала, поля добавленные
через Field API или добавленные
другими модулями
7. Настройка полей во Views в Drupal 7
Жмем на название поля в разделе FIELDS
8. Настройка фильтров во Views в Drupal 7
Чтобы объект отобразился во View, он должен подходить под
все фильтры.
Для добавления жмем FILTER CRITERIA > Add
Фильтры могут быть exposed
— их значение может
выбирать посетитель сайта
9. Настройка сортировки во Views в Drupal 7
Объекты отображаются во View, в порядке определенном
критериями сортировки. Если критериев несколько, сначала
сравнивается первый, если он равен — береться второй и т.д.
Для добавления жмем SORT CRITERIA > Add
Критерии сортировки
также могут быть exposed
— тогда порядок
сортировки может
выбирать посетитель
сайта
Если формат
отображения выбран
Table, то каждая колонка
может сортироваться
кликом по своему
заголовку. Сортировка
таблицы главнее чем
сортирвка настроенная в
разделе SORT CRITERIA
10. Настройка контекстных фильтров во Views в Drupal 7
Используются как и обычные фильтры, но отличаются
механизмом работы
Обычные фильтры Контекстные фильтры
Изменяются Только если exposed Всегда
посетителями
Передают Через GET-параметры Через аргументы в адресе
параметры last-10-articles?uid=admin last-10-articles/1
Имеют форму для Да Нет
своего изменения
Могут изменять Нет Да
заголовок view
Рекомендуются для Нет Да
создания
навигации в меню
12. Настройка контекстных фильтров во Views в Drupal 7
Теперь фильтровать списко статей можно двумя способами
– exposed-фильтр last-10-articles?uid=admin
– контекстный фильтр last-10-articles/1
13. Расширенные возможности
Создание групп фильтров для создание условий типа OR
Создание блоков и rss-лент
Темизация Views
Работа связанными объектами с помощью Relationships
Группировка вывода по полям
14. Ссылки на подробную информацию
http://drupal.org/project/views
http://views-help.doc.logrus.com
– http://drupal.org/project/advanced_help
http://dev.nodeone.se/node/781
15. Контакты
Фиделин Евгений
Компания QArea
Email: eugene.fidelin@gmail.com
Skype: eugene.fidelin