Some theming principles, links and advices for front-end developers switching from Drupal 7 to Drupal 8, or for people that need to quickly hop into D8 theming development.
There are links of the demo on github for the source code.
This is a session on the basics of Drupal 7 themeing and front-end customization of a Drupal 7 website.
This training session is targeted as intermediate to advanced Drupal user. (Sharp beginners might also benefit).
The objectives of this session are two fold:
First is to impress on you a fundamental knowledge of the Drupal theme system and an understanding of how it works.
Second is to empower you with a knowledge of how you might start to use the power and flexibility of the Drupal theme system to easily customize the look and feel of a Drupal website.
This is a session on the basics of Drupal 7 themeing and front-end customization of a Drupal 7 website.
This training session is targeted as intermediate to advanced Drupal user. (Sharp beginners might also benefit).
The objectives of this session are two fold:
First is to impress on you a fundamental knowledge of the Drupal theme system and an understanding of how it works.
Second is to empower you with a knowledge of how you might start to use the power and flexibility of the Drupal theme system to easily customize the look and feel of a Drupal website.
Top 20 mistakes you will make on your 1st Drupal projectIztok Smolic
Working as a Drupal theming/development consultant on many "rescue" mission projects I seen many different mistakes web developers do when facing with Drupal for the first time.
Little documentation and few base themes with 8.x branches - what's a front end developer to do? I'll show you what's changing in Drupal theming between D7 and D8 and how to create a custom theme based on the Classy base theme, step by step. We'll go over Twig basics and Twig debugging.
Quite significant changes were introduced in the theme system between Drupal 8 and 7. This guide contains information that applies to Drupal 8 theming.
Formazione sul theming per drupal 8: partendo da una breve panoramica di che cos'è cambiato rispetto alla versione precedente, vedremo quali sono le novità introdotte con la nuova versione ma soprattutto faremo alcuni esempi pratici utili per chi vuole iniziare a creare un tema per drupal 8 e… vivere sereno!
Drupal 8: Most common beginner mistakesIztok Smolic
It's been a "long and winding road" since the 20 mistakes I made with my first Drupal project. Drupal 8 had me learning everything all over again, but this time around, I was prepared... or so I thought.
Everything You Need to Know About the Top Changes in Drupal 8Acquia
<p>Drupal 8 is on the way. And we know you want to know -- what does this mean for me?!</p>
<p>Don't fear, Angie 'webchick' Byron is here! This one hour webinar will provide you with detailed overviews on the major changes in Drupal 8, as well as several short video demos that will give you a glimpse into a few of the newest features and capabilities. Angie will explain what D8 means for:</p>
<ul>
<li>Site Builders: See Views in Core, more (and better) blocks, improved entity and field features...the list goes on!</li>
<li>Front-end Developers: We're talking HTML5, libraries, accessibility enhancements, new themes and UI elements, and faster performance, to name a few.</li>
<li>Back-end Developers: A new configuration management system, a completely rehauled Entity API, improved caching, and new built-in web services features.</li></ul>
О том, какие инструменты может использовать начинающий менеджер. 4 простые инструмента и маленький бонус, которые помогут наладить хорошие взаимотношения в команде и добиться лучших результатов.
Today there is a lot of things you can put your attention to.
When creating new products for consumers we need to make sure they will be willing to use them and become loyal to our products.
This presentation is about some principles I have come up with in User Experience that make sure your product will be interesting to people that have no time to waste.
Top 20 mistakes you will make on your 1st Drupal projectIztok Smolic
Working as a Drupal theming/development consultant on many "rescue" mission projects I seen many different mistakes web developers do when facing with Drupal for the first time.
Little documentation and few base themes with 8.x branches - what's a front end developer to do? I'll show you what's changing in Drupal theming between D7 and D8 and how to create a custom theme based on the Classy base theme, step by step. We'll go over Twig basics and Twig debugging.
Quite significant changes were introduced in the theme system between Drupal 8 and 7. This guide contains information that applies to Drupal 8 theming.
Formazione sul theming per drupal 8: partendo da una breve panoramica di che cos'è cambiato rispetto alla versione precedente, vedremo quali sono le novità introdotte con la nuova versione ma soprattutto faremo alcuni esempi pratici utili per chi vuole iniziare a creare un tema per drupal 8 e… vivere sereno!
Drupal 8: Most common beginner mistakesIztok Smolic
It's been a "long and winding road" since the 20 mistakes I made with my first Drupal project. Drupal 8 had me learning everything all over again, but this time around, I was prepared... or so I thought.
Everything You Need to Know About the Top Changes in Drupal 8Acquia
<p>Drupal 8 is on the way. And we know you want to know -- what does this mean for me?!</p>
<p>Don't fear, Angie 'webchick' Byron is here! This one hour webinar will provide you with detailed overviews on the major changes in Drupal 8, as well as several short video demos that will give you a glimpse into a few of the newest features and capabilities. Angie will explain what D8 means for:</p>
<ul>
<li>Site Builders: See Views in Core, more (and better) blocks, improved entity and field features...the list goes on!</li>
<li>Front-end Developers: We're talking HTML5, libraries, accessibility enhancements, new themes and UI elements, and faster performance, to name a few.</li>
<li>Back-end Developers: A new configuration management system, a completely rehauled Entity API, improved caching, and new built-in web services features.</li></ul>
О том, какие инструменты может использовать начинающий менеджер. 4 простые инструмента и маленький бонус, которые помогут наладить хорошие взаимотношения в команде и добиться лучших результатов.
Today there is a lot of things you can put your attention to.
When creating new products for consumers we need to make sure they will be willing to use them and become loyal to our products.
This presentation is about some principles I have come up with in User Experience that make sure your product will be interesting to people that have no time to waste.
Lets talk about JavaScript (at JSMD Meetup #7)Kirill Borzov
I really like JavaScript and use it a lot in my personal projects.
But there are some things in JS that I don't like or that I often see people overuse.
Showcasing Circle theme file structure, features, libraries, theme settings, starterkit and other front-end related stuff to quickly recap the Circle theme and get started )
A small introduction to Mixbook — who we are, what we do, what technologies we use. And some info about the future of technologies, IT community in Moldova and some funny slides :)
Спрос на хороших разработчиков растет, появляются новые технологии, а процесс рекрутинга разработчиков пока отстает. Эта презентация о том, как проработав 8 лет разработчиком, я использовал свои знания для поиска лучших кандидатов и систематизации/автоматизации процессов )
Презентация включает несколько рекомендаций по поиску в соц. сетях.
Drupal 8 theming principles.
All new stuff that we will see on the front-end part in the new version of Drupal.
List of new stuff:
-Mobile friendly
-Drupal is now a REST server with a CMS on top
-New design
-New Seven admin theme
-UX improvements
-Responsive base theme out of the box
-Breakpoint module in Core
-hml5
-CSS3 instead of JavaScript
-In-place editing for Fields
-Better aggregation with CSS weights
-Frontend Automated Testing
-IE6-7 support dropped
-Partially dropped IE8 Support
-.theme and .yml files in theme
-.yml CSS override & remove
-TWIG!
-#DreamMarkup
-jQuery 1.9 & jQuery UI 1.10.2
-Tour module
-WYSIWYG in core
-Fieldable custom blocks
-New CSS Architecture
-.button class for all buttons and links
-Primary button type added
-CSS/JS Libraries
-Normalize.css
-Modernizr + client-side feature detection
-New Toolbar
-Footer menu by default
-Theme individual layouts
-New field types: E-mail, Link/URL, Phone number, Date/Time and Entity Reference
-Responsive table classes
-Browser targeted drupal_add_js()
You may have a great user interface, good content and an excellent idea to share with the world – but it will all be for nothing if your users leave your website because of slow load times. This is even more true for people accessing your website through a mobile device.
If you wish to retain your visitors, you have to think optimization. Period.
This talk will be mainly about reducing page load times, with a focus on mobile devices. We'll look at CSS and Javascript optimization, and touch a bit on image optimization. We'll check out some of the tools that Drupal provides for testing and improving performance, and we'll write some code of course.
Building RAG with self-deployed Milvus vector database and Snowpark Container...Zilliz
This talk will give hands-on advice on building RAG applications with an open-source Milvus database deployed as a docker container. We will also introduce the integration of Milvus with Snowpark Container Services.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofsAlex Pruden
This paper presents Reef, a system for generating publicly verifiable succinct non-interactive zero-knowledge proofs that a committed document matches or does not match a regular expression. We describe applications such as proving the strength of passwords, the provenance of email despite redactions, the validity of oblivious DNS queries, and the existence of mutations in DNA. Reef supports the Perl Compatible Regular Expression syntax, including wildcards, alternation, ranges, capture groups, Kleene star, negations, and lookarounds. Reef introduces a new type of automata, Skipping Alternating Finite Automata (SAFA), that skips irrelevant parts of a document when producing proofs without undermining soundness, and instantiates SAFA with a lookup argument. Our experimental evaluation confirms that Reef can generate proofs for documents with 32M characters; the proofs are small and cheap to verify (under a second).
Paper: https://eprint.iacr.org/2023/1886
20 Comprehensive Checklist of Designing and Developing a WebsitePixlogix Infotech
Dive into the world of Website Designing and Developing with Pixlogix! Looking to create a stunning online presence? Look no further! Our comprehensive checklist covers everything you need to know to craft a website that stands out. From user-friendly design to seamless functionality, we've got you covered. Don't miss out on this invaluable resource! Check out our checklist now at Pixlogix and start your journey towards a captivating online presence today.
Communications Mining Series - Zero to Hero - Session 1DianaGray10
This session provides introduction to UiPath Communication Mining, importance and platform overview. You will acquire a good understand of the phases in Communication Mining as we go over the platform with you. Topics covered:
• Communication Mining Overview
• Why is it important?
• How can it help today’s business and the benefits
• Phases in Communication Mining
• Demo on Platform overview
• Q/A
Full-RAG: A modern architecture for hyper-personalizationZilliz
Mike Del Balso, CEO & Co-Founder at Tecton, presents "Full RAG," a novel approach to AI recommendation systems, aiming to push beyond the limitations of traditional models through a deep integration of contextual insights and real-time data, leveraging the Retrieval-Augmented Generation architecture. This talk will outline Full RAG's potential to significantly enhance personalization, address engineering challenges such as data management and model training, and introduce data enrichment with reranking as a key solution. Attendees will gain crucial insights into the importance of hyperpersonalization in AI, the capabilities of Full RAG for advanced personalization, and strategies for managing complex data integrations for deploying cutting-edge AI solutions.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfMalak Abu Hammad
Discover how MongoDB Atlas and vector search technology can revolutionize your application's search capabilities. This comprehensive presentation covers:
* What is Vector Search?
* Importance and benefits of vector search
* Practical use cases across various industries
* Step-by-step implementation guide
* Live demos with code snippets
* Enhancing LLM capabilities with vector search
* Best practices and optimization strategies
Perfect for developers, AI enthusiasts, and tech leaders. Learn how to leverage MongoDB Atlas to deliver highly relevant, context-aware search results, transforming your data retrieval process. Stay ahead in tech innovation and maximize the potential of your applications.
#MongoDB #VectorSearch #AI #SemanticSearch #TechInnovation #DataScience #LLM #MachineLearning #SearchTechnology
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIVladimir Iglovikov, Ph.D.
Presented by Vladimir Iglovikov:
- https://www.linkedin.com/in/iglovikov/
- https://x.com/viglovikov
- https://www.instagram.com/ternaus/
This presentation delves into the journey of Albumentations.ai, a highly successful open-source library for data augmentation.
Created out of a necessity for superior performance in Kaggle competitions, Albumentations has grown to become a widely used tool among data scientists and machine learning practitioners.
This case study covers various aspects, including:
People: The contributors and community that have supported Albumentations.
Metrics: The success indicators such as downloads, daily active users, GitHub stars, and financial contributions.
Challenges: The hurdles in monetizing open-source projects and measuring user engagement.
Development Practices: Best practices for creating, maintaining, and scaling open-source libraries, including code hygiene, CI/CD, and fast iteration.
Community Building: Strategies for making adoption easy, iterating quickly, and fostering a vibrant, engaged community.
Marketing: Both online and offline marketing tactics, focusing on real, impactful interactions and collaborations.
Mental Health: Maintaining balance and not feeling pressured by user demands.
Key insights include the importance of automation, making the adoption process seamless, and leveraging offline interactions for marketing. The presentation also emphasizes the need for continuous small improvements and building a friendly, inclusive community that contributes to the project's growth.
Vladimir Iglovikov brings his extensive experience as a Kaggle Grandmaster, ex-Staff ML Engineer at Lyft, sharing valuable lessons and practical advice for anyone looking to enhance the adoption of their open-source projects.
Explore more about Albumentations and join the community at:
GitHub: https://github.com/albumentations-team/albumentations
Website: https://albumentations.ai/
LinkedIn: https://www.linkedin.com/company/100504475
Twitter: https://x.com/albumentations
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
4. Difference with Drupal 7
Same theme registry, same hook_theme, but with twig
hook_process removed
Now HTML5 friendly
Adding scripts and styles in library
All theme functions are now twig templates
New theme hook suggestions: http://bit.ly/2jhjPpd
5. Difference with Drupal 7
No jQuery by default
Breakpoints and Responsive images module
Image styles: /admin/config/media/responsive-image-style
Defining Breakpoints in theme config
Theme settings and defaults change a bit.
SMACSS and BEM based structure
Drupal is now more responsive http://bit.ly/2kH6Yta
7. File structure
THEMENAME.info.yml *
What libraries to include and basic theme stuff
http://bit.ly/2kFnGN2
THEMENAME.libraries.yml *
What files to include
https://www.drupal.org/node/2216195
THEMENAME.theme
Where the preprocess and alter logic goes
http://bit.ly/2keNZsR
9. Working with Twig
Quick overview: http://bit.ly/2kFep3A
Twig naming convention: http://bit.ly/2kFtMwJ
Twig filters: http://bit.ly/2kFkPzB
in Drupal: http://bit.ly/2kFyR8a
Twig funtions: http://bit.ly/2kFk6yv
in Drupal: http://bit.ly/2kFk6yv
Attributes http://bit.ly/2kFueeA
10. Theme functions
Read about theme api and core templates here: http://bit.ly/2lmOrD8
About hook_theme here:
http://bit.ly/2lmZewZ
Twig naming convention:
http://bit.ly/2lna3zh
Pattern lab starter for D8
http://bit.ly/2koGnTT
11. Thank you!
& have a nice day!
the presentation is available here:
http://bit.ly/theming-d8
Editor's Notes
Различия с Друпал седьмым, что добавилось, что исчезло
Поговорим о всех возможных (адекватных) файлах в папке темы, и где она должна быть
Поговорим о твиге, что дает, как использовать и разберем пару примеров
Посмотрим как изменились theme функции и как их использовать в D8
Полезные ссылки:
https://sqndr.github.io/d8-theming-guide/core-themes/index.html
https://dl.dropboxusercontent.com/u/8325927/d8-theming-html/index.html
https://www.drupal.org/list-changes/drupal/published?keywords_description=&to_branch=&version=&created_op=%3E%3D&created%5Bvalue%5D=&created%5Bmin%5D=&created%5Bmax%5D=&impacts%5B%5D=3
В принципе больших изменений в создании темы для D8 от d7 нет. Конечно новый yml формат и twig, но это небольшие изменения.Размерем тонкости.— Такой же theme registry. Все объявленные theme функции попадают туда, как и препроцессы и расположение файла
— объявление и использование hook_theme такое же, но не нужно объявлять темплейты. Сразу идут твиг темплейты. Определяется так же - наличие в теме, в модуле и в коре. Работает переписывание по названию файла
— Раньше были preprocess и process, сейчас process выкинули— Друпал теперь во всю использует html5 элементы, role и rDFA генерит schema.org markup. Не все новые html5 тэги добавлены.
Сюда же - css стал чище, убрали лишние классы, убрали лишние врапперы, html стал много красивее
— Раньше стили и скрипты можно было добавлять откуда угодно (я писал статью об этом). Теперь это на плечах библиотек, и все разделено по компонентам.
В .info.yml можно указать какие libraries использовать на всех страницах, какие переписать, дополнить или отменить.
Библиотеки можно подключать в twig файле через {{ attach_library('fluffiness/cuddly-slider') }}
Можно в theme_preprocess_hook через variables['#attached']['library'][]
— Все коровские тимизационные функции переведены в twig
Темплейты поменяли в twig расширения
Функции без темплейтов перевели в темплейты
В коре теперь нет html кода вне twig файлов
— theme hook suggestion раньше был в preprocess’е, теперь для него сделали отдельный hook: hook_theme_suggestions_alter(array &$suggestions, array $variables, $hook) и hook_theme_hook_suggestion_HOOK_alter(array &$suggestions, array $variables). Добавляется строка с саджестом в $suggestions, с __. В названии темплейта должны быть -
— рекомендуется из preprocess’ов убирать theme() и drupal_render() функции, а вместо этого создавать renderable array и указанием нужной темы. array(‘#theme’ => ‘menu-item’, ...);
— Раньше jQuery был изначально на всех страницах, теперь его нужно подключать везде где нужно. Можно подключить глобально в theme.libraries.yml— модуль breakpoints в коре. Брейкпойнты задаются в yml файле THEMENAME.breakpoints.yml
- Заданные брэйкпойнты можно использовать в модуль Responsive images.
— Настройки темы можно задать в themename.theme или в theme-settings.php. Внутри должна быть функция function hook_form_system_theme_settings_alter()
- дефолтные значения хранятся в настройках в теме: config/install/THEMENAME.settings.yml - переменные из настроек нужно отправлять в темплейт через препроцесс. Получить можно через theme_get_setting('foo_example');
—
— Много всего, админка и тулбар сразу респонсив, брэйкпойнты, modernizr и прочее. Читать тут : https://www.drupal.org/node/1388492
— Друпал теперь НАКОНЕЦ поддерживает новую версию jquery (2.x), модернайзер и проч. Опять же, если нужны — подключить в library.
— Появились тема classy - с минимальными классами и чистыми темплейтами. И тема stable - совсем голая. Лучше использовать тему Classy как base тему
Если вы используете d8 как REST-full или API сервис, то в принципе вы не столкнетесь с проблемой верстки под d8 :)
Демо: Слайды от Wes Ruvalcaba: http://wesruv.github.io/reveal.js/d8.html#/17
Template helper для Chrome: https://chrome.google.com/webstore/detail/drupal-template-helper/ppiceaegogijpjodfpiimifhbnaifbnn