Ivan Zugec

Ivan Zugec

@ivanzugec.com

#drupal https://www.ivanzugec.com | https://www.webwash.net

154 followers47 following1.1K posts

Filter criteria in Views control what shows up in a list, like only Article content. They're hardcoded until you tick "Expose this filter to visitors", which lets visitors change them from a form on the page. Sorts work the same way. #drupal #views

Twig Tweak lets you render views, regions and entities straight from a Twig template. drupal_view('who_s_new', 'block_1') drupal_region('sidebar_first') drupal_entity('block_content', 1) Run drush twig-tweak:debug to list every function it gives you. #drupal #twig

Job for today, build a portfolio site! I'm sticking with Astro and Markdown files so I can host it for free on Cloudflare, and I'm thinking of using Impeccable for the design. #ai #sites

Alt text generation ships with the AI Assistant recipe in Drupal CMS. Edit any image in the media library and click Generate with AI next to the alt text field. #drupal #accessibility

Twig Field Value adds field_label and field_value filters to Twig. content.field_tags|field_label content.field_tags|field_value|safe_join(', ') They only work off the content variable, not node. composer require drupal/twig_field_value #drupal #twig

Web dev in the age of AI. Option 1: Don't update immediately. AI writes an exploit within hours. Your site gets hacked. Option 2: Update immediately. You installed a compromised version. Your site gets hacked. Option 3: Cry. #webdev #ai

Adding AI to CKEditor in Drupal CMS. Install the AI CKEditor integration, set the permission, then configure your text format and drag in the two AI buttons. Under AI tools, switch on what you want: Generate with AI, Modify, Spell check and Summarize. #drupal #ckeditor

Security vulnerabilities are coming out daily, and thereโ€™s a big PHP release today. I think we should start using static site generators. ๐Ÿ˜€ Bring back Dreamweaver and FrontPage. #webdev

Finding the exact Twig path for an image can be tricky. File: node.field_featured_image.entity.field_media_image.entity.uri.value Wrap it in file_url() for a relative path. Alt: node.field_featured_image.entity.field_media_image.alt #drupal #twig

My Drupal account is over 20 years old. 20 years and 6 days, to be exact. In that time I've worked on amazing projects, been to a lot of camps/cons, and made lifelong friends. Here's to the next 20. ๐ŸŽ‰ BTW, if you're looking for a Drupal/PHP dev, I'm available. Send me a message. #drupal

The Drupal CMS AI chat can seed a vocabulary. "Create the following terms and add them to the Tags vocabulary. Drupal, React, WordPress." It plans first, waits for approval, then creates them. Beats thirty trips through the add term form. #drupal #drupalai

How do you upskill in this market? I think building something with AI in a framework you donโ€™t know, like NestJS, still teaches you a lot, as long as you read the docs and deploy it yourself.

Already prematurely optimising my (non released) app. Replaced Mux video handling with FFmpeg. Was able to create a thumbnail and audio wave timeline. Been testing it with my live streams.

Creating content types and fields at the config level with Claude Code/Codex is faster than the Drupal AI chat. No Drupal AI setup needed, and the models understand Drupal's config schema. Have it run a config import, and the content model ends up in Git. #drupal #drupalai

Using the Drupal AI chat, you can reorder and move fields around. I asked it to move the technology field above introduction on the Project content type. It's a real time saver if you need to update the same set of fields across multiple content types. #drupal #drupalai

Using the AI Assistant in Drupal, you can create fields directly from the AI chat. I asked it to add a text list field to the Project content type, with React, WordPress and Drupal as the options. It even came up with its own field name. #drupal #drupalai

Bootstrap 6 Alpha 1 is out. Who's going to use this in Drupal? I still like Bootstrap, but I've moved everything over to Tailwind/daisyUI. #bootstrap

Before AI, I procrastinated on the large features I needed to build. After AI, I procrastinate on the large prompt/spec I need to write. With or without AI, you still need to break your features down into smaller chunks. Or maybe I'm the problem. #ai

Google now supports editing markdown files directly in Drive. Interesting...๐Ÿค” So I should just store all docs as .md files. #google #googledrive

It's been a while since I installed just Drupal core, and it's quick and responsive. Preparing for tomorrow's live stream. #drupalcore #drupal

If you record videos in OBS. Ask Claude Code or Codex to compress the video. You'll save a lot in storage. From 2GB to 700MB. #obs #video

The Drupal CMS AI chat knows your site. Ask it to list all the content types in Drupal and watch the status text. It shows "calling content type agent". The Drupal CMS Assistant is an orchestration agent that routes your question to a specialist agent. #drupal #drupalai

Views renders fields in order, and a field can only use tokens from fields above it. That's why your Link to content token isn't in the replacement patterns list. Rearrange the fields so it sits above the one using it, then exclude it from display. #drupal #views