We will have around 200 files and we want them to be dynamically selected by means of a view based on the type (video, audio, docx, pdf, xlsx), words in the title and description as well as a hierarchical taxonomy. Once a file is selected out of the view, we want it displayed or played (if audio or video) right from the page (i.e. not having to be downloaded and then accessed as a separate step). The most important part is the onscreen list and selection. We could live w/o the player part.
The block system and API in Backdrop is very different from Drupal's. In Backdrop, as in Drupal, modules can define blocks in code (in fact some of the API at this level is the same, with...
Posted3 days 18 hours ago by Alejandro Cremaschi (argiepiano) on:
This was from examining line 2463- of the webform.module, where
// Attach necessary JavaScript and CSS.
$form['#attached'] = array(
'css' => array(backdrop_get_path('module', 'webform...
d'oh. Because of course it is reassigning. Don't mind me...
the correct syntax is
$form['#attached']['js'][] =
backdrop_get_path('module', 'mymodule') . '/mymodule.js';
Comments
What's the use case?
We will have around 200 files and we want them to be dynamically selected by means of a view based on the type (video, audio, docx, pdf, xlsx), words in the title and description as well as a hierarchical taxonomy. Once a file is selected out of the view, we want it displayed or played (if audio or video) right from the page (i.e. not having to be downloaded and then accessed as a separate step). The most important part is the onscreen list and selection. We could live w/o the player part.