-
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.
Defining a template for a page created by the module
Please suggest a solution for Drupal version 7
There is a module, and within the module, a page is defined as "module/page". For the callback function of the page, there are no issues defining a custom template through hook_theme; however, it works on the principle of a node template - displaying the content part of the page. How can I define a page-type template specifically for this page so that the template itself resides in the module folder rather than in the theme folder?
For Drupal 6, it seems that the following code works:
function mymodule_theme_registry_alter(&$theme_registry) { array_unshift($theme_registry['page']['theme paths'], drupal_get_path('module', 'mymodule'));
}
Please suggest a solution for version 7
- Log in to post comments