-
EBT Blocks 🧱
-
EPT Paragraphs 🆕
-
Resources & Support
- Drupal Book
- Blog
- Case Studies
- Drupal Documentation
- JSON Drop API Documentation
- Forum
- What's New
- Download Drupal
- Contact
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.
The function views_get_view_result is returning an empty array for some reason.
Hello.
I created a view named view-last-news, which returns a list of the latest news.
In the view construction mode, the preview shows everything correctly.
I'm trying to read the information stored in this view using the function call views_get_view_result, and this function call is located in the file node-[node-type].tpl.php
I'm writing the following code:
$wr=views_get_view_result('view-last-news');
print_r($wr);
But for some reason, it returns an empty array
Array ( )
Moreover, when I created a block with this view, that block displays everything correctly.
Could you please tell me why the returned array is empty if this view is supposed to contain data?
- Log in to post comments