Wrapping fields together in a Views Exposed Filter

Wrapping fields together in a Views Exposed Filter

I’m trying to insert divs (or any tag) in my exposed filter form with the purpose of grouping related fields together. I want to have something like this: <div class=”my-group”> field one field two … </div> So far, I have tried this... read more
Wrapping fields together in a Views Exposed Filter

Collapsed and collapsible Field Sets in Admin

I have created a fieldset (which groups a field collection). Because it has a few nested levels and many fields, I want it to be shown collapsed. I am trying this code but it does not work. The id is retrieved directly from the source code of the web browser. The... read more
Wrapping fields together in a Views Exposed Filter

Delete unmanaged file after download?

In a custom module I create a file and then use drupal_goto to download it. How can I delete the file after it is downloaded? Placing a file_unmanaged_delete after the drupal_goto doesn’t get executed, and hook_file_download happens before the download for... read more
How can I edit a custom field with Rule and VBO of a NOT published node?

How can I edit a custom field with Rule and VBO of a NOT published node?

I’m currently stuck in the creation of a custom rule. I’ve created a content type “Avviso” with a publishing date field (start & end) and a custom field_stato with this values: Not active Active Terminated Archived Now I would like to... read more
Wrapping fields together in a Views Exposed Filter

How to display an image in a Views RSS feed

I am trying to display an image in a Views RSS feed. I have added the following fields to my View: field_image, field_title, field_twitter (These fields come from my node). I then set all fields to “Exclude from display”. I then create a new field in Views... read more
Wrapping fields together in a Views Exposed Filter

How have multiple instances of a Custom Block?

So I have a custom block that has been created within the module. I have used the drupal API to generate the brand new fields – which works perfectly. However, I am having an issue regarding multiple instances of the custom block. As I want the blocks to be... read more
Wrapping fields together in a Views Exposed Filter

How do I load external JavaScript before local JavaScript?

I try to load JavaScript with drupal_add_js(), but it’s not easy, and after fixing the loading of external JavaScript, I faced off a loading order issue: My external JavaScript is loaded after my local ones, and I would like the opposite behavior. Is it possible... read more
Wrapping fields together in a Views Exposed Filter

How to download the files data attached to webform

I have webform with text fields and file upload field. How can i download the all the documents which was uploaded through this webform. read more
Wrapping fields together in a Views Exposed Filter

How to run jquery codes before and after ajax call?

I want to create a loading code while the ajax call is not yet complete, AND enable my jquery code after calling the ajax of drupal form. The ajax I’m referring to is the “Add new field/Add more” of unlimited field. I don’t have a custom module... read more
Wrapping fields together in a Views Exposed Filter

hide field based on its value or value of another hidden field

I need to hide a radio button field of a content type (not a form) only on the edit view based either on its own value or based on the value of another field that is already hidden. Dependencies does not work, I think because the other field is already hidden and... read more
Wrapping fields together in a Views Exposed Filter

How to give default today date value in exposed filter?

I am using exposed filter condition for date field in views. I want to see the data in view by current date as default ..for that i am trying to give date field should be default by today date and when i click on date filter and select on previous date i should see... read more
Wrapping fields together in a Views Exposed Filter

How to use composer for installation profile?

I have a Drupal 8 installation profile with custom modules and themes and I am wondering how should I use composer so that I can run it and drupal core and other dependencies(like contrib modules) would get properly downloaded(and also Drupal’s cusom composer... read more
Wrapping fields together in a Views Exposed Filter

How do I render nodes, now that node_view() has been deprecated?

In Drupal 7 I frequently use node_view() for rendering nodes (using view modes) in blocks or pages as follows: $nids = array(123,456,789); $nodes = node_load_multiple($nids); foreach ($nodes as $node) { $node_view = node_view($node, ‘teaser’); $output .=... read more
Wrapping fields together in a Views Exposed Filter

Features Revert or Update

Just to clarify some attributes about features. Revert will take what is in my code and add it to the database? Update will take what is in my database and change the code? What happens if I have overridden fields and want to omit them when copying the feature over to... read more
Wrapping fields together in a Views Exposed Filter

How to change a node nid?

I have a node with nid = 548754 and I needed to be 301. Is there a safe way to do this? There are a lot of tables related to 548754. What if I export the database, then open sql file, replace the number and then import the database. Will this work? read more
Wrapping fields together in a Views Exposed Filter

Changing decimal field scale and precision using database

I’m using a custom decimal field in a custom product type in Drupal commerce. It has a precision of 10 and a scale of 2 (2 digits to the right of the decimal place). I have a client with a large number of products that use this field, but their specification has... read more
Wrapping fields together in a Views Exposed Filter

Create two nodes with url aliases on one submission

I have a content type “News”. With URL aliases pattern and token the URL is like this: news/[node:title]. Is it possible to create two nodes on one submission with different URL aliases? Let’s say on submitting on the news node, it will create two... read more
Wrapping fields together in a Views Exposed Filter

Passing global variables to alter hooks

The problem I have is that it seems that I can use global variable created inside another module, only if I use it inside callback function. I successfully tested it by inserting code inside existing modules. The global variable is $subtotal. function... read more
Wrapping fields together in a Views Exposed Filter

Debugging your code under SimpleTest when the behavior is different

I’m dealing with a weird problem where a few of my tests are dying from exceptions when run inside of SimpleTest, but I’m unable to reproduce the problem outside of the SimpleTest environment. In particular, it appears that exceptions that I’m... read more
Wrapping fields together in a Views Exposed Filter

How to use Views Page + Attachment to show parent and children nodes?

I have a site with a node type Lesson, which has a Category field that points to a taxonomy term. There is another node type Exercise which is a child to a Lesson node. I previously figured out how to make one view page for a term url that displays both a parent and... read more