-
EBT Blocks 🧱
-
EPT Paragraphs 🆕
-
Resources & Support
- Drupal Book
- Blog
- Case Studies
- Drupal Documentation
- JSON Drop API Documentation
- Forum
- What's New
- Download Drupal
- Contact
Canvas Palette - Make it Colorful🎨
Canvas Palette - Drag in blocks, drop in a video, add a splash of color - no design degree required.
Extra Block Types (EBT) - New Layout Builder experience❗
Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.
❗Extra Paragraph Types (EPT) - New Paragraphs experience
Extra Paragraph Types (EPT) - analogical paragraph based set of modules.
GLightbox is a pure javascript lightbox (Colorbox alternative without jQuery)❗
It can display images, iframes, inline content and videos with optional autoplay for YouTube, Vimeo and even self-hosted videos.
How to properly use Global: PHP in a view for content filtering?
Hello everyone!
I kindly ask experienced forum members to help with a task.
I want to create a filter in the view using the PHP filter - the filter name is Global: PHP.
This view is a custom page I created. It displays form fields.
The view outputs several form fields. One of them is the username. This user is not the current user.
I need this view to be visible only to users from that field.
How should I correctly write the filter code? In Global: PHP, among the AVAILABLE VARIABLES, this field is displayed as $row->field_name
If there are other filtering options without using Global: PHP, I would be happy to hear them. In CONTEXTUAL FILTERS, there is no option to filter by this criterion.
I am using Drupal 7.
Thank you in advance to everyone who takes the time to help!
- Log in to post comments